From 251da6fbd82b9e289430b330d403a318586da416 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Tue, 22 Apr 2014 15:44:28 +0200 Subject: remove unneccessary Body: when there are no other sections anyway --- it.class | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/it.class b/it.class index f6d42ac..7813da9 100644 --- a/it.class +++ b/it.class @@ -208,7 +208,10 @@ static function error($p = array()) $p['body'] = "Body: " . getenv('HOSTNAME') . ":$datafn"; } - $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" : ""); + $body = + ($p['omitdebuginfo'] >= 2 ? "" : ($url && !$toscreen? "{$p['title']}\n\nUrl: $url\n\n" : "") . + ($trace ? ($sendmail ? "" : " ") . "Trace: $trace\n\n" : "")) . + ($p['body'] ? ($p['omitdebuginfo'] ? "" : "Body:\n") . trim($p['body'])."\n\n" : ""); if ($sendmail) # we're mailing: send maximum info { -- cgit v1.2.3