diff options
author | Urban Müller | 2014-04-22 15:44:28 +0200 |
---|---|---|
committer | Urban Müller | 2014-04-22 15:44:28 +0200 |
commit | 251da6fbd82b9e289430b330d403a318586da416 (patch) | |
tree | 38c29c61dc556afc93d2b43052a69d490edca29c | |
parent | 9c12f504e2a2a1b004493179697e8abb4dc25474 (diff) | |
download | itools-251da6fbd82b9e289430b330d403a318586da416.tar.gz itools-251da6fbd82b9e289430b330d403a318586da416.tar.bz2 itools-251da6fbd82b9e289430b330d403a318586da416.zip |
remove unneccessary Body: when there are no other sections anyway
-rw-r--r-- | it.class | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 { |