From: Michael M Slusarz Date: Sun, 7 Mar 2010 04:42:01 +0000 (-0700) Subject: atc_indices can be (and often will be) 0 X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=90e35ab57ee0a0a39f554fa9759feb31bf919d39;p=horde.git atc_indices can be (and often will be) 0 --- diff --git a/imp/lib/Ajax/Application.php b/imp/lib/Ajax/Application.php index b4f96c857..7eae9e39d 100644 --- a/imp/lib/Ajax/Application.php +++ b/imp/lib/Ajax/Application.php @@ -1088,7 +1088,7 @@ class IMP_Ajax_Application extends Horde_Ajax_Application_Base */ public function deleteAttach() { - if ($this->_vars->atc_indices) { + if (isset($this->_vars->atc_indices)) { $imp_compose = IMP_Compose::singleton($this->_vars->imp_compose); foreach ($imp_compose->deleteAttachment($this->_vars->atc_indices) as $val) { $GLOBALS['notification']->push(sprintf(_("Deleted attachment \"%s\"."), Horde_Mime::decode($val)), 'horde.success');