From: Michael M Slusarz Date: Thu, 18 Feb 2010 00:16:19 +0000 (-0700) Subject: Fix undefined error. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=3cd706a3f22efb5fdf32ae493c152774bef473c6;p=horde.git Fix undefined error. --- 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();