From: Michael M Slusarz Date: Thu, 2 Sep 2010 16:04:02 +0000 (-0600) Subject: Fix return from report ham AJAX call X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=a67d205117d183d0f43088c82d5d636762690163;p=horde.git Fix return from report ham AJAX call --- diff --git a/imp/lib/Ajax/Application.php b/imp/lib/Ajax/Application.php index 40a15b4f7..a5d956d81 100644 --- a/imp/lib/Ajax/Application.php +++ b/imp/lib/Ajax/Application.php @@ -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; diff --git a/imp/lib/Spam.php b/imp/lib/Spam.php index 59af656e5..42ac74a7e 100644 --- a/imp/lib/Spam.php +++ b/imp/lib/Spam.php @@ -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 {