mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
디버그 기능 사용시 비로그인 상태에서 발생하는 치명적인 오류 수정
PHP Fatal error: Uncaught TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, bool given in /common/framework/debug.php:753
This commit is contained in:
parent
5b195ce16e
commit
c850c9fdcc
1 changed files with 1 additions and 1 deletions
|
|
@ -750,7 +750,7 @@ class Debug
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
elseif (method_exists($logged_info, 'isAdmin'))
|
elseif (is_object($logged_info) && method_exists($logged_info, 'isAdmin'))
|
||||||
{
|
{
|
||||||
return self::$_enabled = $logged_info->isAdmin();
|
return self::$_enabled = $logged_info->isAdmin();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue