mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-22 16:33:00 +00:00
Bugfix: Undefined variable $user when logged in
This commit is contained in:
parent
25198c6518
commit
4f6174152e
1 changed files with 1 additions and 1 deletions
2
core.php
2
core.php
|
@ -493,7 +493,7 @@ class page_renderer
|
||||||
case "user-status":
|
case "user-status":
|
||||||
if($env->is_logged_in)
|
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 .= "<span><a href='index.php?action=logout'>Logout</a></span>";
|
||||||
$result .= page_renderer::$nav_divider;
|
$result .= page_renderer::$nav_divider;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue