From df5b0e7804db5105650d6385e68f47a737681ac8 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Wed, 3 Dec 2008 16:59:51 -0700 Subject: [PATCH] Fix display of downloadall/stripall links. --- imp/message.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imp/message.php b/imp/message.php index f92cfbe33..db0bd2cb9 100644 --- a/imp/message.php +++ b/imp/message.php @@ -702,7 +702,7 @@ if (!IMP::$printMode) { if ($show_parts != 'atc') { $a_template->set('show_parts_atc', Horde::widget(Util::addParameter($headersURL, array('show_parts' => 'atc')), _("Show Attachments Only"), 'widget', '', '', _("Show Attachments Only"), true)); } - if (count($atc_parts) || (count($display_ids) > 2)) { + if (count($display_ids) > 2) { $a_template->set('download_all', Horde::widget($imp_contents->urlView($imp_contents->getMIMEMessage(), 'download_all', array('params' => array('download_ids' => serialize($atc_parts)))), _("Download All Attachments (in .zip file)"), 'widget', '', '', _("Download All Attachments (in .zip file)"), true)); if ($strip_atc) { $a_template->set('strip_all', Horde::widget(Util::addParameter(Util::removeParameter(Horde::selfUrl(true), array('actionID')), array('actionID' => 'strip_all', 'message_token' => $message_token)), _("Strip All Attachments"), 'widget', '', "return window.confirm('" . addslashes(_("Are you sure you wish to PERMANENTLY delete all attachments?")) . "');", _("Strip All Attachments"), true)); -- 2.11.0