MainNavBar: harden Registry access
This commit is contained in:
parent
1e26a51d08
commit
2d2ef38422
@ -33,7 +33,7 @@ class MainNavBar extends NavBar
|
|||||||
<span class="navbar-toggler-icon"></span>
|
<span class="navbar-toggler-icon"></span>
|
||||||
</button>';
|
</button>';
|
||||||
|
|
||||||
if (Registry::get('user')->isLoggedIn())
|
if (Registry::has('user') && Registry::get('user')->isLoggedIn())
|
||||||
{
|
{
|
||||||
echo '
|
echo '
|
||||||
<div class="collapse navbar-collapse justify-content-end" id="', $this->innerMenuId, '">
|
<div class="collapse navbar-collapse justify-content-end" id="', $this->innerMenuId, '">
|
||||||
|
Loading…
Reference in New Issue
Block a user