From 510b78891ca04e7b633bb99ca5eb5332d7d1ca18 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Tue, 27 Jun 2017 13:56:39 +0200 Subject: display body even if value is false/null --- it.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']); -- cgit v1.2.3