diff options
author | Urban Müller | 2015-09-17 17:57:36 +0200 |
---|---|---|
committer | Urban Müller | 2015-09-17 17:57:36 +0200 |
commit | 044872a5afa7b7b2d3e758f32466bc331ac197ed (patch) | |
tree | 6dee64a5c5980513101bb986df6051feede0d04f | |
parent | 007ac6313b90e25faadcaf7d3952daa442f4b66b (diff) | |
download | itools-044872a5afa7b7b2d3e758f32466bc331ac197ed.tar.gz itools-044872a5afa7b7b2d3e758f32466bc331ac197ed.tar.bz2 itools-044872a5afa7b7b2d3e758f32466bc331ac197ed.zip |
no error body if NULL
-rw-r--r-- | it.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -204,7 +204,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'] : var_export($p['body'], true); + $p['body'] = is_string($p['body']) || !$p['body'] ? $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']); |