mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-18 02:39:56 +09:00
Fix #1610 memory leak in initial debug status check
This commit is contained in:
parent
9c77f9593d
commit
f4758b7570
3 changed files with 7 additions and 8 deletions
|
|
@ -745,9 +745,9 @@ class Debug
|
|||
|
||||
case 'admin':
|
||||
default:
|
||||
if (Session::isStarted())
|
||||
if ($logged_info = \Context::get('logged_info'))
|
||||
{
|
||||
return self::$_enabled = Session::isAdmin();
|
||||
return self::$_enabled = $logged_info->isAdmin();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue