From 41db054c1ca1ffeaf4d4ba9cd79b6d850be759a6 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Wed, 12 Nov 2008 20:34:34 -0700 Subject: [PATCH] Fix _renderInline() return. --- imp/lib/Mime/Viewer/plain.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/imp/lib/Mime/Viewer/plain.php b/imp/lib/Mime/Viewer/plain.php index 9922a6da3..01badb3eb 100644 --- a/imp/lib/Mime/Viewer/plain.php +++ b/imp/lib/Mime/Viewer/plain.php @@ -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. -- 2.11.0