diff options
-rw-r--r-- | app/index.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/index.php b/app/index.php index 3fee675..1617652 100644 --- a/app/index.php +++ b/app/index.php @@ -36,7 +36,7 @@ function main(array $argv) : void require_https(); /* assert that a user is logged in */ - if (!user::getCurrent()) + if (!($user = user::getCurrent())) { require "view/login.php"; return; @@ -45,6 +45,7 @@ function main(array $argv) : void /* no arguments? display dashboard */ if (count($argv) == 0) { + setPageObj($user); require "view/dashboard.php"; return; } |