From b1598bf64b8c29c9c0aed0d3570b60a722feb52d Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Tue, 8 Apr 2014 15:28:48 +0200 Subject: make sure stack trace comes before any long body --- it.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it.class') 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 { -- cgit v1.2.3