diff --git a/class.krumo.php b/class.krumo.php index c83a6f7..db24df3 100644 --- a/class.krumo.php +++ b/class.krumo.php @@ -499,9 +499,12 @@ public static function dump($data, $second = '') $_ = debug_backtrace(); while ($d = array_pop($_)) { $callback = static::$lineNumberTestCallback; - $class = strtolower($d['class'] ?? ''); - $function = strtolower($d['function'] ?? ''); - if (in_array($function, array('krumo','k','kd')) || $class == 'krumo' || (is_callable($callback) && call_user_func($callback, $d))) { + + $class = strtolower($d['class'] ?? ''); + $function = strtolower($d['function'] ?? ''); + $is_krumo_func = in_array($function, array('krumo','k','kd')); + + if ($is_krumo_func || $class == 'krumo' || (is_callable($callback) && call_user_func($callback, $d))) { break; } }