diff --git a/templates/MainNavBar.php b/templates/MainNavBar.php index 51ae4c1..7b7b5e4 100644 --- a/templates/MainNavBar.php +++ b/templates/MainNavBar.php @@ -33,7 +33,7 @@ class MainNavBar extends NavBar '; - if (Registry::get('user')->isLoggedIn()) + if (Registry::has('user') && Registry::get('user')->isLoggedIn()) { echo '