From: Michael M Slusarz Date: Wed, 12 Nov 2008 06:51:35 +0000 (-0700) Subject: Make sure we include ID of this part. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=8472cf9ea7d9b2da68a252500eb90067cf3b165b;p=horde.git Make sure we include ID of this part. --- diff --git a/imp/lib/Mime/Viewer/related.php b/imp/lib/Mime/Viewer/related.php index 86c765cbd..c6f51d534 100644 --- a/imp/lib/Mime/Viewer/related.php +++ b/imp/lib/Mime/Viewer/related.php @@ -76,6 +76,7 @@ class IMP_Horde_Mime_Viewer_related extends Horde_Mime_Viewer_Driver $text = ''; $subparts = $this->_mimepart->contentTypeMap(); + $ids = array_keys($subparts); unset($subparts[key($subparts)]); /* Look at the 'start' parameter to determine which part to start @@ -106,7 +107,7 @@ class IMP_Horde_Mime_Viewer_related extends Horde_Mime_Viewer_Driver } $ret = $this->_params['contents']->renderMIMEPart($id, $inline ? 'inline' : 'full', array('params' => array('related_id' => $id, 'related_cids' => $cids))); - $ret['ids'] = array_merge($ret['ids'], array_keys($subparts)); + $ret['ids'] = array_keys(array_flip(array_merge($ret['ids'], $ids))); unset($ret['summary_id']); return $ret; }