rewrote for() loop to foreach() + added curly braces/spaces
Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
parent
006b4b88b2
commit
73ee285212
2 changed files with 44 additions and 44 deletions
10
index.php
10
index.php
|
@ -395,7 +395,7 @@ $a->init_page_end();
|
|||
// If you're just visiting, let javascript take you home
|
||||
if (x($_SESSION, 'visitor_home')) {
|
||||
$homebase = $_SESSION['visitor_home'];
|
||||
] elseif (local_user()) {
|
||||
} elseif (local_user()) {
|
||||
$homebase = 'profile/' . $a->user['nickname'];
|
||||
}
|
||||
|
||||
|
@ -403,17 +403,11 @@ if (isset($homebase)) {
|
|||
$a->page['content'] .= '<script>var homebase="' . $homebase . '" ; </script>';
|
||||
}
|
||||
|
||||
<<<<<<< HEAD
|
||||
// now that we've been through the module content, see if the page reported
|
||||
// a permission problem and if so, a 403 response would seem to be in order.
|
||||
|
||||
=======
|
||||
/*
|
||||
* now that we've been through the module content, see if the page reported
|
||||
* a permission problem and if so, a 403 response would seem to be in order.
|
||||
*/
|
||||
>>>>>>> 29f1028... Convention:
|
||||
if (stristr( implode("",$_SESSION['sysmsg']), t('Permission denied'))) {
|
||||
if (stristr(implode("", $_SESSION['sysmsg']), t('Permission denied'))) {
|
||||
header($_SERVER["SERVER_PROTOCOL"] . ' 403 ' . t('Permission denied.'));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue