Fix related ID value
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 23 Sep 2009 03:21:17 +0000 (21:21 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 23 Sep 2009 05:00:00 +0000 (23:00 -0600)
imp/lib/Mime/Viewer/Related.php

index 2a84d60..7c073c7 100644 (file)
@@ -90,7 +90,7 @@ class IMP_Horde_Mime_Viewer_Related extends Horde_Mime_Viewer_Driver
             return array();
         }
 
-        $render = $this->_params['contents']->renderMIMEPart($id, $inline ? IMP_Contents::RENDER_INLINE : IMP_Contents::RENDER_FULL, array('params' => array_merge($this->_params, array('related_id' => $id, 'related_cids' => $cids))));
+        $render = $this->_params['contents']->renderMIMEPart($id, $inline ? IMP_Contents::RENDER_INLINE : IMP_Contents::RENDER_FULL, array('params' => array_merge($this->_params, array('related_id' => $related_id, 'related_cids' => $cids))));
 
         if (!$inline) {
             return $render;