From: Michael M Slusarz Date: Mon, 9 Nov 2009 19:56:32 +0000 (-0700) Subject: Make the return conform to what is expected from render() X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=950713232c79deac732a3ca4625e5ab9a2d7a663;p=horde.git Make the return conform to what is expected from render() --- diff --git a/imp/lib/Mime/Viewer/Alternative.php b/imp/lib/Mime/Viewer/Alternative.php index 733a76525..e1e0090a9 100644 --- a/imp/lib/Mime/Viewer/Alternative.php +++ b/imp/lib/Mime/Viewer/Alternative.php @@ -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' + ); } }