atc_indices can be (and often will be) 0
authorMichael M Slusarz <slusarz@curecanti.org>
Sun, 7 Mar 2010 04:42:01 +0000 (21:42 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Mon, 8 Mar 2010 02:46:28 +0000 (19:46 -0700)
imp/lib/Ajax/Application.php

index b4f96c8..7eae9e3 100644 (file)
@@ -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');