X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FContent%2FNav.php;h=335f81bf3d80f54216f7bb55618e371d324cff29;hb=6749b2c887552feef3a671c4063425b11a92014a;hp=4a9c71ce9fed5d71bb6c8f5338e0b046d7ddea2e;hpb=e683bd60ae5430a9a54b6b04db0737616e0baa32;p=friendica.git diff --git a/src/Content/Nav.php b/src/Content/Nav.php index 4a9c71ce9f..335f81bf3d 100644 --- a/src/Content/Nav.php +++ b/src/Content/Nav.php @@ -187,7 +187,7 @@ class Nav 'name' => $a->user['username'], ]; } else { - DI::logger()->warning('Empty $a->user for local user'. ['local_user' => local_user(), '$a' => $a]); + DI::logger()->warning('Empty $a->user for local user', ['local_user' => local_user(), '$a' => $a]); } } @@ -256,7 +256,7 @@ class Nav } // The following nav links are only show to logged in users - if (local_user()) { + if (local_user() && !empty($a->user)) { $nav['network'] = ['network', DI::l10n()->t('Network'), '', DI::l10n()->t('Conversations from your friends')]; $nav['home'] = ['profile/' . $a->user['nickname'], DI::l10n()->t('Home'), '', DI::l10n()->t('Your posts and conversations')];