protected function _renderInfo()
{
$mdn_id = $this->_mimepart->getMimeId();
- $parts = $this->_mimepart->contentTypeMap();
-
- /* Set the pointer to the 2nd item. */
- reset($parts);
- next($parts);
+ $parts = array_keys($this->_mimepart->contentTypeMap());
$status = array(
array(
* (3) Original message (optional) */
/* Print the human readable message. */
- $curr_id = $first_id = key($parts);
+ reset($parts);
+ $curr_id = $first_id = next($parts);
$first_part = $this->_params['contents']->renderMIMEPart($curr_id, IMP_Contents::RENDER_INLINE_AUTO, array('params' => $this->_params));
/* Display a link to more detailed message. */