summaryrefslogtreecommitdiffstats
path: root/app/index.php
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2018-07-21 23:27:02 -0400
committerMalf Furious <m@lfurio.us>2018-07-21 23:27:02 -0400
commit26ab0a495365ddc7de9a70309305d366bfafeaac (patch)
treec0123757cc06c625b960e8ccb1fe5d56827cc119 /app/index.php
parent72ba54e1224ef815f8f7dabdf0c7449b120cfc4c (diff)
downloadscrott-26ab0a495365ddc7de9a70309305d366bfafeaac.tar.gz
scrott-26ab0a495365ddc7de9a70309305d366bfafeaac.zip
Update index.php to set appropriate page objects
Diffstat (limited to '')
-rw-r--r--app/index.php3
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;
}