summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorUrban Müller2015-09-17 17:57:36 +0200
committerUrban Müller2015-09-17 17:57:36 +0200
commit044872a5afa7b7b2d3e758f32466bc331ac197ed (patch)
tree6dee64a5c5980513101bb986df6051feede0d04f /it.class
parent007ac6313b90e25faadcaf7d3952daa442f4b66b (diff)
downloaditools-044872a5afa7b7b2d3e758f32466bc331ac197ed.tar.gz
itools-044872a5afa7b7b2d3e758f32466bc331ac197ed.tar.bz2
itools-044872a5afa7b7b2d3e758f32466bc331ac197ed.zip
no error body if NULL
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 7416f81..8c16c56 100644
--- a/it.class
+++ b/it.class
@@ -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']);