From 950713232c79deac732a3ca4625e5ab9a2d7a663 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Mon, 9 Nov 2009 12:56:32 -0700 Subject: [PATCH] Make the return conform to what is expected from render() --- imp/lib/Mime/Viewer/Alternative.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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' + ); } } -- 2.11.0