summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorUrban Müller2023-05-17 15:33:27 +0200
committerUrban Müller2023-05-17 15:33:27 +0200
commit732f456413428e746141e34037e4b0ce0088f7fd (patch)
tree9804b2ffb5130f3183bf5f1cce04105a98be6e61 /it.class
parent20af0b2f45ca9e4cdb2a7245e621496944015780 (diff)
downloaditools-732f456413428e746141e34037e4b0ce0088f7fd.tar.gz
itools-732f456413428e746141e34037e4b0ce0088f7fd.tar.bz2
itools-732f456413428e746141e34037e4b0ce0088f7fd.zip
prevent errors in it::error
Diffstat (limited to 'it.class')
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it.class b/it.class
index 81e1bd4..7b4b614 100644
--- a/it.class
+++ b/it.class
@@ -269,7 +269,7 @@ static function error($p = array(), $extra = null)
$p['body'] = is_string($p['body']) || !array_key_exists('body', $p) ? $p['body'] : it_debug::dump([$p['body']], ['html' => false, 'short' => true, 'color' => false]);
if (strlen($p['body']) > 500000 || it::match('[\x00-\x08\x0E-\x1F]', $p['body'], ['utf8' => false]) !== null)
{
- file_put_contents($datafn = "$home/tmp/error-" . substr(md5($p['body']), 0, 2), $p['body']); # NOPHPLINT
+ @it::file_put_contents($datafn = "$home/tmp/error-" . substr(md5($p['body']), 0, 2), $p['body']); # NOPHPLINT
$p['body'] = " See " . getenv('HOSTNAME') . ":$datafn";
}