diff --git a/public/index.php b/public/index.php index 749e178..74908f2 100644 --- a/public/index.php +++ b/public/index.php @@ -24,7 +24,7 @@ require_once models . 'Habit.php'; // Initialize router $router = new Router(); -if(!$_SESSION['user']) { +if(!isset($_SESSION['user'])) { $router->add('/', 'HomeController@index'); } else { $router->add('/', 'DashboardController@reroute', ['RequireAuth']);