summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2021-02-08 14:26:37 +0100
committerUrban Müller2021-02-08 14:26:37 +0100
commit3fa1ec73007a71fdb577365312c593724592aa17 (patch)
tree3aefb0c8e577075ba5aaf6f1fbe9b99aea42f649
parent846d80c1d8ce1baf7b3a07798d7f702466888842 (diff)
downloaditools-3fa1ec73007a71fdb577365312c593724592aa17.tar.gz
itools-3fa1ec73007a71fdb577365312c593724592aa17.tar.bz2
itools-3fa1ec73007a71fdb577365312c593724592aa17.zip
correctly report extra params; it::error has recursion protection
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it.class b/it.class
index 1c5d403..6f49195 100644
--- a/it.class
+++ b/it.class
@@ -161,7 +161,7 @@ static function error($p = array(), $extra = null)
$p['title'] = grapheme_substr($p['title'], 0, 2000);
if ($extra)
- it::error('extraneous params passed to it::error');
+ $p = ['title' => 'extraneous params passed to it::error', 'fatal' => $p['fatal']];
foreach (array_slice(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 10), 1) as $level)
if ($level["class"] . $level["type"] . $level["function"] == "it::error")