summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorUrban Müller2018-01-08 11:59:51 +0100
committerUrban Müller2018-01-08 11:59:51 +0100
commit2c587d8efa0ad426ee7fab622c5dbe7bca00c351 (patch)
treea72b3e6d17be233d89ea6580d519f2f504a29157 /it.class
parentf6e4af3c6f2e79e0c92a41031b9d967d3927dac7 (diff)
downloaditools-2c587d8efa0ad426ee7fab622c5dbe7bca00c351.tar.gz
itools-2c587d8efa0ad426ee7fab622c5dbe7bca00c351.tar.bz2
itools-2c587d8efa0ad426ee7fab622c5dbe7bca00c351.zip
handle structured body
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 3a36510..5553d33 100644
--- a/it.class
+++ b/it.class
@@ -290,7 +290,7 @@ static function error($p = array())
if ($_SERVER['REMOTE_ADDR']) # additional entry in log/error_log
error_log("it::error: " . $p['title'] . " Url: $url");
- it::log("/tmp/alertdata/alertlog", $p['title'] . " in " . ($trace ? $trace : "{$p['file']}:{$p['line']}") . " Url: $url" . ($p['body'] ? "\n" . substr($p['body'], 0, 5000) . "\n" : ""));
+ it::log("/tmp/alertdata/alertlog", $p['title'] . " in " . ($trace ? $trace : "{$p['file']}:{$p['line']}") . " Url: $url" . ($p['body'] ? "\n" . substr(D($p['body']), 0, 5000) . "\n" : ""));
if ($p['fatal'])
exit(99);