$text = '';
$subparts = $this->_mimepart->contentTypeMap();
+ $ids = array_keys($subparts);
unset($subparts[key($subparts)]);
/* Look at the 'start' parameter to determine which part to start
}
$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;
}