summaryrefslogtreecommitdiff
path: root/it_debug.class
diff options
context:
space:
mode:
Diffstat (limited to 'it_debug.class')
-rw-r--r--it_debug.class4
1 files changed, 2 insertions, 2 deletions
diff --git a/it_debug.class b/it_debug.class
index 6d66d21..98f8484 100644
--- a/it_debug.class
+++ b/it_debug.class
@@ -241,8 +241,8 @@ static function backtrace($p = array())
$argstrings = [];
foreach ($frame['args'] as $arg)
{
- $t = trim(it::replace(['^array \(\s*' => "[", ',\n\)$' => "]", " +" => " ", "\n" => ""], var_export($arg, true)), " ,");
- $argstrings[] = strlen($t) < 80 ? $t : it::replace(["(.{0,60} |.{0,60}).*" => '$1'], $t) . "..." . (is_array($arg) ? "]" : (is_object($arg) ? "}" :""));
+ $t = trim(it::replace(['^array \(\s*' => "[", ',\n\)$' => "]", '^array \( \)' => "[]", " +" => " ", "\n" => ""], var_export($arg, true)), " ,");
+ $argstrings[] = strlen($t) < 60 ? $t : it::replace(["^(.{0,60} |.{0,60}).*" => '$1'], $t) . "..." . (is_array($arg) ? "]" : (is_object($arg) ? "}" :""));
}
$allargs = join(", ", $argstrings);