From 3cd706a3f22efb5fdf32ae493c152774bef473c6 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Wed, 17 Feb 2010 17:16:19 -0700 Subject: [PATCH] Fix undefined error. --- imp/lib/Mime/Viewer/Plain.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imp/lib/Mime/Viewer/Plain.php b/imp/lib/Mime/Viewer/Plain.php index c8d80fd30..c0cc69abf 100644 --- a/imp/lib/Mime/Viewer/Plain.php +++ b/imp/lib/Mime/Viewer/Plain.php @@ -62,19 +62,19 @@ class IMP_Horde_Mime_Viewer_Plain extends Horde_Mime_Viewer_Plain } // Trim extra whitespace in the text. + $charset = $this->_mimepart->getCharset(); $text = trim($this->_mimepart->getContents()); if ($text == '') { return array( $mime_id => array( 'data' => '', 'status' => array(), - 'type' => $type + 'type' => 'text/html; charset=' . $charset ) ); } // Convert to the local charset. - $charset = $this->_mimepart->getCharset(); if ($inline) { $text = Horde_String::convertCharset($text, $charset); $charset = Horde_Nls::getCharset(); -- 2.11.0