From: Jan Schneider Date: Wed, 24 Nov 2010 15:45:33 +0000 (+0100) Subject: There's no reason to send an empty header value. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=9cbc7822d151b312c0b67ca33bc3a3f82c692f7f;p=horde.git There's no reason to send an empty header value. --- diff --git a/imp/lib/Views/ShowMessage.php b/imp/lib/Views/ShowMessage.php index cc6c37652..bfe945eed 100644 --- a/imp/lib/Views/ShowMessage.php +++ b/imp/lib/Views/ShowMessage.php @@ -172,9 +172,7 @@ class IMP_Views_ShowMessage /* Build the rest of the headers. */ foreach ($headers_list as $head => $str) { - if (!$preview && isset($result[$head])) { - $headers[$head] = array('id' => Horde_String::ucfirst($head), 'name' => $str, 'value' => ''); - } elseif ($val = $mime_headers->getValue($head)) { + if ($val = $mime_headers->getValue($head)) { if ($head == 'date') { /* Add local time to date header. */ $val = htmlspecialchars($imp_ui->getLocalTime($envelope['date']));