diff options
Diffstat (limited to 'it_debug.class')
-rw-r--r-- | it_debug.class | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/it_debug.class b/it_debug.class index bddd63b..a504be8 100644 --- a/it_debug.class +++ b/it_debug.class @@ -96,6 +96,7 @@ static function dump($args, $p = []) { $p += ['html' => !EDC('edplain') && (self::$force_html || $_SERVER['REMOTE_ADDR']), 'color' => true]; $htmlspecialchars = array("&" => "&", '<' => "<", '>' => ">"); + $args = count($args) ? $args : [it_debug::backtrace(['skiplevels' => 2])]; if ((preg_match('/csv|txt|gif|jpg/', $_SERVER['PHP_SELF']) || preg_grep('#text/(calendar|css|javascript|json|plain|rfc822|xml)|application/#', headers_list()) || $GLOBALS['debug_edplain']) && !$GLOBALS['debug_edhtml']) ; |