summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
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 e09e5e1..e97a13c 100644
--- a/it.class
+++ b/it.class
@@ -185,7 +185,7 @@ function error($p = array(), $body = null, $to = null) # $body and $to deprecate
{
$trace = it_debug::backtrace($p['backtraceskip']); # moved in here for performance in mass error case
- $body = ($body ? trim($body)."\n\n" : "") . ($url && !$toscreen? "{$p['title']}\n\nUrl: $url\n\n" : "") . ($trace ? ($sendmail?"" :" ")."Trace: $trace\n\n" : "");
+ $body = ($p['body'] ? trim($p['body'])."\n\n" : "") . ($url && !$toscreen? "{$p['title']}\n\nUrl: $url\n\n" : "") . ($trace ? ($sendmail?"" :" ")."Trace: $trace\n\n" : "");
if ($sendmail) # we're mailing: send maximum info
{