summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorSimon Rettberg2014-10-16 11:35:14 +0200
committerSimon Rettberg2014-10-16 11:35:14 +0200
commit358842a847ce67632204135bbb3c9c8f2267f243 (patch)
tree04d81e475f9faa2d181c62efa8c32a80a1fb8013 /index.php
parentDo a chdir in api.php to the script dir to simplify cmdline calls (diff)
downloadslx-admin-358842a847ce67632204135bbb3c9c8f2267f243.tar.gz
slx-admin-358842a847ce67632204135bbb3c9c8f2267f243.tar.xz
slx-admin-358842a847ce67632204135bbb3c9c8f2267f243.zip
Show notice in menu bar if setup is incomplete
Diffstat (limited to 'index.php')
-rw-r--r--index.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/index.php b/index.php
index 2f507e2c..82879041 100644
--- a/index.php
+++ b/index.php
@@ -119,7 +119,8 @@ Render::addTemplate('main-menu', array(
'langs' => Dictionary::getLanguages(true),
'dbupdate' => Database::needSchemaUpdate(),
'user' => User::getName(),
- 'warning' => User::getName() && User::getLastSeenEvent() < Property::getLastWarningId()
+ 'warning' => User::getName() !== false && User::getLastSeenEvent() < Property::getLastWarningId(),
+ 'needsSetup' => User::getName() !== false && Property::getNeedsSetup()
));
Message::renderList();