1
1
Fork 0

rewrote for() loop to foreach() + added curly braces/spaces

Signed-off-by: Roland Haeder <roland@mxchange.org>
This commit is contained in:
Roland Häder 2017-03-25 14:32:49 +01:00
commit 73ee285212
No known key found for this signature in database
GPG key ID: B72F8185C6C7BD78
2 changed files with 44 additions and 44 deletions

View file

@ -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.'));
}