diff --git a/lib/Debug.php b/lib/Debug.php index 4901342d..f912fb3b 100644 --- a/lib/Debug.php +++ b/lib/Debug.php @@ -109,7 +109,7 @@ class Debug { } $backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 3); - $calling = $backtrace[2]; + $calling = end($backtrace); $message = $calling['file'] . ':' . $calling['line'] . ' class ' . (isset($calling['class']) ? $calling['class'] : '') . '->'