From 1392664aaf8d763b5cac927df01ce763d6672d36 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Sun, 6 Mar 2016 21:42:05 -0500 Subject: Only include the Setting modal if currently logged in This prevents sending un-necessary HTML to the client on login/signup pages and allows code on the setting modal to assume that getCurrentUser() will always return an object. --- app/view/common/topp.view.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/view/common/topp.view.php b/app/view/common/topp.view.php index b23dc9c..d520e00 100644 --- a/app/view/common/topp.view.php +++ b/app/view/common/topp.view.php @@ -1,6 +1,8 @@ - +getCurrentUser()) { ?> + +