From: Michael M Slusarz Date: Thu, 13 Nov 2008 05:32:43 +0000 (-0700) Subject: Fix displaying other inline parts under the alt part. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=8220af93e3e3b225292749c2c7b5b1fd14013d23;p=horde.git Fix displaying other inline parts under the alt part. --- diff --git a/imp/lib/Mime/Viewer/alternative.php b/imp/lib/Mime/Viewer/alternative.php index 9bf5156f7..490b4438a 100644 --- a/imp/lib/Mime/Viewer/alternative.php +++ b/imp/lib/Mime/Viewer/alternative.php @@ -85,12 +85,14 @@ class IMP_Horde_Mime_Viewer_alternative extends Horde_Mime_Viewer_Driver } /* Now grab all keys under this ID. */ + $display_ids = array_flip($display_ids); $render_part = $this->_mimepart->getPart($disp_id); foreach (array_keys($render_part->contentTypeMap()) as $val) { - if (in_array($val, $display_ids) && !isset($ret[$val])) { + if (isset($display_ids[$val])) { $render = $this->_params['contents']->renderMIMEPart($val, 'inline', array('params' => $this->_params)); foreach (array_keys($render) as $id) { $ret[$id] = $render[$id]; + unset($display_ids[$id]); } } }