summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2017-06-27 13:56:39 +0200
committerUrban Müller2017-06-27 13:56:39 +0200
commit510b78891ca04e7b633bb99ca5eb5332d7d1ca18 (patch)
tree1f6d4e91b0acac8b3999945d28ebb952b4beb61e
parent434f607ada78cb2a2b4c6dadb09d040c8bbe161e (diff)
downloaditools-510b78891ca04e7b633bb99ca5eb5332d7d1ca18.tar.gz
itools-510b78891ca04e7b633bb99ca5eb5332d7d1ca18.tar.bz2
itools-510b78891ca04e7b633bb99ca5eb5332d7d1ca18.zip
display body even if value is false/null
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it.class b/it.class
index 8d47b3d..9bb4935 100644
--- a/it.class
+++ b/it.class
@@ -215,7 +215,7 @@ static function error($p = array())
{
$trace = it_debug::backtrace(array('skiplevels' => $p['backtraceskip'], 'skipfiles' => $p['skipfiles'])); # moved in here for performance in mass error case
- $p['body'] = is_string($p['body']) || !$p['body'] ? $p['body'] : var_export($p['body'], true);
+ $p['body'] = is_string($p['body']) || !array_key_exists('body', $p) ? $p['body'] : var_export($p['body'], true);
if (strlen($p['body']) > 500000)
{
file_put_contents($datafn = "/tmp/alertdata/error-" . substr(md5($p['body']), 0, 2), $p['body']);