From 4f6174152e6a23a5fe539efd498c674993bfb85f Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Tue, 22 Sep 2015 14:54:03 +0100 Subject: [PATCH] Bugfix: Undefined variable $user when logged in --- core.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core.php b/core.php index 451283c..5ec1103 100644 --- a/core.php +++ b/core.php @@ -493,7 +493,7 @@ class page_renderer case "user-status": if($env->is_logged_in) { - $result .= "Logged in as " . self::render_username($user) . ". "/* . page_renderer::$nav_divider*/; + $result .= "Logged in as " . self::render_username($env->user) . ". "/* . page_renderer::$nav_divider*/; $result .= "Logout"; $result .= page_renderer::$nav_divider; }