디버그 기능 사용시 비로그인 상태에서 발생하는 치명적인 오류 수정

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:
conory 2022-03-16 16:07:57 +09:00
parent 5b195ce16e
commit c850c9fdcc

View file

@ -750,7 +750,7 @@ class Debug
{
return true;
}
elseif (method_exists($logged_info, 'isAdmin'))
elseif (is_object($logged_info) && method_exists($logged_info, 'isAdmin'))
{
return self::$_enabled = $logged_info->isAdmin();
}