Fix _renderInline() return.
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 13 Nov 2008 03:34:34 +0000 (20:34 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 13 Nov 2008 03:34:34 +0000 (20:34 -0700)
imp/lib/Mime/Viewer/plain.php

index 9922a6d..01badb3 100644 (file)
@@ -26,7 +26,13 @@ class IMP_Horde_Mime_Viewer_plain extends Horde_Mime_Viewer_plain
         // Trim extra whitespace in the text.
         $text = rtrim($this->_mimepart->getContents());
         if ($text == '') {
-            return array();
+            return array(
+                $this->_mimepart->getMimeId() => array(
+                    'data' => '',
+                    'status' => array(),
+                    'type' => 'text/html; charset=' . NLS::getCharset()
+                )
+            );
         }
 
         // Convert to the local charset.