diff options
author | Malf Furious <m@lfurio.us> | 2018-07-21 23:27:02 -0400 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2018-07-21 23:27:02 -0400 |
commit | 26ab0a495365ddc7de9a70309305d366bfafeaac (patch) | |
tree | c0123757cc06c625b960e8ccb1fe5d56827cc119 | |
parent | 72ba54e1224ef815f8f7dabdf0c7449b120cfc4c (diff) | |
download | scrott-26ab0a495365ddc7de9a70309305d366bfafeaac.tar.gz scrott-26ab0a495365ddc7de9a70309305d366bfafeaac.zip |
Update index.php to set appropriate page objects
-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; } |