summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2023-08-16 16:17:50 +0200
committerUrban Müller2023-08-16 16:17:50 +0200
commitb0f8ad62a2295b27790af0bb2a1bd233360c93fb (patch)
treeabbfe8e806e81eb96f12be4b6aa953175c05e648
parentd60d449c76ddef9f6d98d891f3b2e923db66de5b (diff)
downloaditools-b0f8ad62a2295b27790af0bb2a1bd233360c93fb.tar.gz
itools-b0f8ad62a2295b27790af0bb2a1bd233360c93fb.tar.bz2
itools-b0f8ad62a2295b27790af0bb2a1bd233360c93fb.zip
respect existing but empty traces
-rw-r--r--it_debug.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_debug.class b/it_debug.class
index 5ed466a..b36c232 100644
--- a/it_debug.class
+++ b/it_debug.class
@@ -224,7 +224,7 @@ static function dump($args, $p = [])
*/
static function backtrace($p = array())
{
- $frames = $p['trace'] ?: ($p['format'] ? array_slice(debug_backtrace(0), $p['skiplevels']) : null);
+ $frames = $p['trace'] ?? ($p['format'] ? array_slice(debug_backtrace(0), $p['skiplevels']) : null);
if ($p['format'] == "long")
{