1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-25 05:22:59 +00:00

Bugfix: Undefined variable $user when logged in

This commit is contained in:
Starbeamrainbowlabs 2015-09-22 14:54:03 +01:00
parent 25198c6518
commit 4f6174152e

View file

@ -493,7 +493,7 @@ class page_renderer
case "user-status":
if($env->is_logged_in)
{
$result .= "<span class='inflexible'>Logged in as " . self::render_username($user) . ".</span> "/* . page_renderer::$nav_divider*/;
$result .= "<span class='inflexible'>Logged in as " . self::render_username($env->user) . ".</span> "/* . page_renderer::$nav_divider*/;
$result .= "<span><a href='index.php?action=logout'>Logout</a></span>";
$result .= page_renderer::$nav_divider;
}