Fix determination of related start MIME part.
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 13 Nov 2008 19:16:07 +0000 (12:16 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 13 Nov 2008 19:16:07 +0000 (12:16 -0700)
imp/lib/Mime/Viewer/related.php

index ef44ab2..9463963 100644 (file)
@@ -63,8 +63,7 @@ class IMP_Horde_Mime_Viewer_related extends Horde_Mime_Viewer_Driver
         $id = $this->_mimepart->getContentTypeParameter('start');
         if (is_null($id)) {
             reset($ids);
-            next($ids);
-            $id = key($ids);
+            $id = next($ids);
         }
 
         /* Only display if the start part (normally text/html) can be