X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FContent%2FNav.php;h=99decc92bb2e645dbade209f754626ef02cd1056;hb=d6adcb973401982e76035ca000130a347391a2be;hp=1f00124082692b552380f37f7fe92b130be4c106;hpb=ecea7425f8ad11ace4af39d476919e3203bff44f;p=friendica.git diff --git a/src/Content/Nav.php b/src/Content/Nav.php index 1f00124082..99decc92bb 100644 --- a/src/Content/Nav.php +++ b/src/Content/Nav.php @@ -11,6 +11,7 @@ use Friendica\Core\Config; use Friendica\Core\L10n; use Friendica\Core\System; use Friendica\Database\DBA; +use Friendica\Model\Contact; use Friendica\Model\Profile; require_once 'boot.php'; @@ -185,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'] != 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'), '', ''];