diff options
author | Urban Müller | 2021-02-08 14:26:37 +0100 |
---|---|---|
committer | Urban Müller | 2021-02-08 14:26:37 +0100 |
commit | 3fa1ec73007a71fdb577365312c593724592aa17 (patch) | |
tree | 3aefb0c8e577075ba5aaf6f1fbe9b99aea42f649 | |
parent | 846d80c1d8ce1baf7b3a07798d7f702466888842 (diff) | |
download | itools-3fa1ec73007a71fdb577365312c593724592aa17.tar.gz itools-3fa1ec73007a71fdb577365312c593724592aa17.tar.bz2 itools-3fa1ec73007a71fdb577365312c593724592aa17.zip |
correctly report extra params; it::error has recursion protection
-rw-r--r-- | it.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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") |