There's no reason to send an empty header value.
authorJan Schneider <jan@horde.org>
Wed, 24 Nov 2010 15:45:33 +0000 (16:45 +0100)
committerJan Schneider <jan@horde.org>
Wed, 24 Nov 2010 16:02:16 +0000 (17:02 +0100)
imp/lib/Views/ShowMessage.php

index cc6c376..bfe945e 100644 (file)
@@ -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']));