Fix display of downloadall/stripall links.
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 3 Dec 2008 23:59:51 +0000 (16:59 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 3 Dec 2008 23:59:51 +0000 (16:59 -0700)
imp/message.php

index f92cfbe..db0bd2c 100644 (file)
@@ -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));