From 7e2de75d4bffb63a923ac82db2179b8176d6e4fe Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Thu, 30 Jul 2009 13:09:19 -0600 Subject: [PATCH] Don't send data if it is empty --- imp/lib/Views/ShowMessage.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/imp/lib/Views/ShowMessage.php b/imp/lib/Views/ShowMessage.php index 7870a91f3..8cc0357f4 100644 --- a/imp/lib/Views/ShowMessage.php +++ b/imp/lib/Views/ShowMessage.php @@ -307,9 +307,9 @@ class IMP_Views_ShowMessage $result['atc_label'] = ($show_parts == 'all') ? _("Parts") : sprintf(ngettext("%d Attachment", "%d Attachments", count($atc_parts)), count($atc_parts)); - $result['atc_download'] = (count($display_ids) > 2) - ? Horde::link($imp_contents->urlView($imp_contents->getMIMEMessage(), 'download_all')) . '[' . _("Save All") . ']' - : ''; + if (count($display_ids) > 2) { + $result['atc_download'] = Horde::link($imp_contents->urlView($imp_contents->getMIMEMessage(), 'download_all')) . '[' . _("Save All") . ']'; + } } /* Show attachment information in headers? */ -- 2.11.0