diff options
author | Urban Müller | 2017-06-27 13:56:39 +0200 |
---|---|---|
committer | Urban Müller | 2017-06-27 13:56:39 +0200 |
commit | 510b78891ca04e7b633bb99ca5eb5332d7d1ca18 (patch) | |
tree | 1f6d4e91b0acac8b3999945d28ebb952b4beb61e /it.class | |
parent | 434f607ada78cb2a2b4c6dadb09d040c8bbe161e (diff) | |
download | itools-510b78891ca04e7b633bb99ca5eb5332d7d1ca18.tar.gz itools-510b78891ca04e7b633bb99ca5eb5332d7d1ca18.tar.bz2 itools-510b78891ca04e7b633bb99ca5eb5332d7d1ca18.zip |
display body even if value is false/null
Diffstat (limited to 'it.class')
-rw-r--r-- | it.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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']); |