summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2014-04-08 15:28:48 +0200
committerUrban Müller2014-04-08 15:28:48 +0200
commitb1598bf64b8c29c9c0aed0d3570b60a722feb52d (patch)
tree52135d9de406d073dedb42a2e22de27703a7ca25
parentba88b1780b11d818b4598ad884c787ae3ed322c1 (diff)
downloaditools-b1598bf64b8c29c9c0aed0d3570b60a722feb52d.tar.gz
itools-b1598bf64b8c29c9c0aed0d3570b60a722feb52d.tar.bz2
itools-b1598bf64b8c29c9c0aed0d3570b60a722feb52d.zip
make sure stack trace comes before any long body
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it.class b/it.class
index 1d70b78..f6d42ac 100644
--- a/it.class
+++ b/it.class
@@ -208,7 +208,7 @@ static function error($p = array())
$p['body'] = "Body: " . getenv('HOSTNAME') . ":$datafn";
}
- $body = ($p['body'] ? trim($p['body'])."\n\n" : "") . ($p['omitdebuginfo'] >= 2 ? "" : ($url && !$toscreen? "{$p['title']}\n\nUrl: $url\n\n" : "") . ($trace ? ($sendmail?"" :" ")."Trace: $trace\n\n" : ""));
+ $body = ($p['omitdebuginfo'] >= 2 ? "" : ($url && !$toscreen? "{$p['title']}\n\nUrl: $url\n\n" : "") . ($trace ? ($sendmail?"" :" ")."Trace: $trace\n\n" : "")) . ($p['body'] ? "Body:\n" . trim($p['body'])."\n\n" : "");
if ($sendmail) # we're mailing: send maximum info
{