Explorar o código

add foreach exeption break

andre %!s(int64=5) %!d(string=hai) anos
pai
achega
25d8d575aa
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      zimbraSingle.php

+ 2 - 0
zimbraSingle.php

@@ -245,6 +245,7 @@ function zimbraSingle_UsageUpdate($params) {
                 'Error : could not find quota for ' . $product['username'],
                 $accountQuota->getMessage()
             );
+            break;
         }
         $mboxObj = $apiAccountManager->getMailbox($product['username']);
         if(is_a($mboxObj, 'Exception')) {
@@ -255,6 +256,7 @@ function zimbraSingle_UsageUpdate($params) {
                 'Error: could not fetch mailbox info for ' . $product['username'],
                 $mboxObj->getMessage()
             );
+            break;
         }
         $mboxVars = get_object_vars($mboxObj);
         $mboxSize = $mboxVars['S'];