Notify.php
authorAlan Knowles <alan@akbkhome.com>
Mon, 17 Jun 2013 23:21:15 +0000 (07:21 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 17 Jun 2013 23:21:15 +0000 (07:21 +0800)
Notify.php

index 6604213..5a8427e 100644 (file)
@@ -248,8 +248,7 @@ class Pman_Core_Notify extends Pman
             $this->poolfree();
              sleep(3);
         }
-        
-        
+         
         foreach($requeue as $p) {
             $pp = clone($p);
             $p->act_when = strtotime($p->act_when .  ' + 1 MINUTE');
@@ -400,14 +399,15 @@ class Pman_Core_Notify extends Pman
      */
     function poolHasDomain($email)
     {
+        $ret = 0;
         $dom = strtolower(array_pop(explode('@',$email)));
         foreach($this->pool as $p) {
             $mdom = strtolower(array_pop(explode('@',$p['email'])));
             if ($mdom == $dom) {
-                return true;
+                $ret++;
             }
         }
-        return false;
+        return $ret;
         
     }