Fix warning error better then c7f84a178d

This commit is contained in:
BJRambo 2021-07-15 17:23:42 +09:00
parent 0f66507030
commit be062e2133
3 changed files with 3 additions and 3 deletions

View file

@ -270,7 +270,7 @@ class Debug
// Get the backtrace.
$backtrace = debug_backtrace(\DEBUG_BACKTRACE_IGNORE_ARGS);
if (count($backtrace) > 1 && $backtrace[1]['function'] === 'debugPrint' && !isset($backtrace[1]['class']))
if (count($backtrace) > 1 && $backtrace[1]['function'] === 'debugPrint' && empty($backtrace[1]['class']))
{
array_shift($backtrace);
}