From 26ab0a495365ddc7de9a70309305d366bfafeaac Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Sat, 21 Jul 2018 23:27:02 -0400 Subject: Update index.php to set appropriate page objects --- app/index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3