From: Michael M Slusarz Date: Thu, 30 Jul 2009 19:09:19 +0000 (-0600) Subject: Don't send data if it is empty X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=7e2de75d4bffb63a923ac82db2179b8176d6e4fe;p=horde.git Don't send data if it is empty --- 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? */