From 93169343187a0ba1f09a19ca797e9de586f59a8e Mon Sep 17 00:00:00 2001 From: Denis Demesmaeker Date: Fri, 16 Nov 2007 17:28:45 +0000 Subject: body defined in array p shoul also be considered --- it.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- cgit v1.2.3