From: Michael M Slusarz Date: Tue, 25 Nov 2008 07:47:13 +0000 (-0700) Subject: Fix a bug; use 'forceinline' support. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=b81a3008710ff7850ee9df07326fd94874407cf6;p=horde.git Fix a bug; use 'forceinline' support. --- diff --git a/imp/lib/Contents.php b/imp/lib/Contents.php index 78899a307..b5b739b65 100644 --- a/imp/lib/Contents.php +++ b/imp/lib/Contents.php @@ -735,9 +735,9 @@ class IMP_Contents $viewer->setParams(array('contents' => &$this)); $new_parts = $viewer->getEmbeddedMimeParts(); if (!is_null($new_parts)) { - foreach (array_keys($new_parts) as $key => $val) { + foreach ($new_parts as $key => $val) { if ($first_id === $key) { - $this->_message = $new_parts[$val]; + $this->_message = $new_parts[$key]; $this->_build = false; return $this->_buildMessage(); } @@ -782,8 +782,7 @@ class IMP_Contents $inline = null; if (($mask & self::RENDER_INLINE) && - ($inline = $viewer->canRender('inline')) && - ($part->getDisposition() == 'inline')) { + ($inline = $viewer->canRender('inline'))) { return self::RENDER_INLINE; }