Fix return from report ham AJAX call
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 2 Sep 2010 16:04:02 +0000 (10:04 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 2 Sep 2010 16:04:02 +0000 (10:04 -0600)
imp/lib/Ajax/Application.php
imp/lib/Spam.php

index 40a15b4..a5d956d 100644 (file)
@@ -821,7 +821,7 @@ class IMP_Ajax_Application extends Horde_Core_Ajax_Application
              * has been removed from the current mailbox. */
             $result->deleted->remove = 1;
         } elseif (!is_null($change)) {
-            $result = $this->_checkUidvalidity();
+            $result = $this->_checkUidvalidity(true);
         }
 
         return $result;
index 59af656..42ac74a 100644 (file)
@@ -42,7 +42,7 @@ class IMP_Spam
         }
 
         $imp_imap = $GLOBALS['injector']->getInstance('IMP_Imap')->getOb();
-        $report_count = 0;
+        $report_count = $result = 0;
 
         foreach ($indices->indices() as $mbox => $msgIndices) {
             try {