]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/Nav.php
And again, and again, and again, ... some more notices removed (#5601)
[friendica.git] / src / Content / Nav.php
index 60937ff7b191dbeaac42db50a8610b629dad43c3..99decc92bb2e645dbade209f754626ef02cd1056 100644 (file)
@@ -186,7 +186,7 @@ class Nav
                        $nav['home'] = ['profile/' . $a->user['nickname'], L10n::t('Home'), '', L10n::t('Your posts and conversations')];
 
                        // Don't show notifications for public communities
-                       if ($_SESSION['page_flags'] != Contact::PAGE_COMMUNITY) {
+                       if (defaults($_SESSION, 'page_flags', '') != Contact::PAGE_COMMUNITY) {
                                $nav['introductions'] = ['notifications/intros', L10n::t('Introductions'), '', L10n::t('Friend Requests')];
                                $nav['notifications'] = ['notifications',       L10n::t('Notifications'), '', L10n::t('Notifications')];
                                $nav['notifications']['all'] = ['notifications/system', L10n::t('See all notifications'), '', ''];