From: Michael M Slusarz Date: Fri, 14 Nov 2008 07:24:47 +0000 (-0700) Subject: Don't output empty header info. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=b793c9cf93a22900d5634ae64ee9a91cdd9c449b;p=horde.git Don't output empty header info. --- diff --git a/framework/Mime/lib/Horde/Mime/Viewer/rfc822.php b/framework/Mime/lib/Horde/Mime/Viewer/rfc822.php index d025b63f6..9b6ffd00c 100644 --- a/framework/Mime/lib/Horde/Mime/Viewer/rfc822.php +++ b/framework/Mime/lib/Horde/Mime/Viewer/rfc822.php @@ -84,7 +84,7 @@ class Horde_Mime_Viewer_rfc822 extends Horde_Mime_Viewer_Driver require_once 'Horde/Text/Filter.php'; return array( $this->_mimepart->getMimeId() => array( - 'data' => '
' . Text_Filter::filter(implode("
\n", $header_output), 'emails') . '
', + 'data' => empty($header_output) ? '' : ('
' . Text_Filter::filter(implode("
\n", $header_output), 'emails') . '
'), 'status' => array(), 'type' => 'text/html; charset=' . NLS::getCharset() )