From 9cbc7822d151b312c0b67ca33bc3a3f82c692f7f Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Wed, 24 Nov 2010 16:45:33 +0100 Subject: [PATCH] There's no reason to send an empty header value. --- imp/lib/Views/ShowMessage.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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'])); -- 2.11.0