Make the return conform to what is expected from render()
authorMichael M Slusarz <slusarz@curecanti.org>
Mon, 9 Nov 2009 19:56:32 +0000 (12:56 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 10 Nov 2009 04:56:03 +0000 (21:56 -0700)
imp/lib/Mime/Viewer/Alternative.php

index 733a765..e1e0090 100644 (file)
@@ -111,7 +111,12 @@ class IMP_Horde_Mime_Viewer_Alternative extends Horde_Mime_Viewer_Driver
                     unset($display_ids[$id]);
                 }
             } elseif ($disp_id != $val) {
-                $ret[$val] = array('attach' => true);
+                $ret[$val] = array(
+                    'attach' => true,
+                    'data' => '',
+                    'status' => array(),
+                    'type' => 'application/octet-stream'
+                );
             }
         }