summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorDenis Demesmaeker2007-11-16 17:28:45 +0000
committerDenis Demesmaeker2007-11-16 17:28:45 +0000
commit93169343187a0ba1f09a19ca797e9de586f59a8e (patch)
tree5def0b404a6c59c2d73cdf0438e07816486a5f07 /it.class
parentb06a9d0df294b7f94ce5ae90c312d5e02c114623 (diff)
downloaditools-93169343187a0ba1f09a19ca797e9de586f59a8e.tar.gz
itools-93169343187a0ba1f09a19ca797e9de586f59a8e.tar.bz2
itools-93169343187a0ba1f09a19ca797e9de586f59a8e.zip
body defined in array p shoul also be considered
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
{