From b4425d26107dbc373ee612954e2fd2c0bb37b4e3 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 18 Jun 2013 07:21:15 +0800 Subject: [PATCH] Notify.php --- Notify.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Notify.php b/Notify.php index 6604213a..5a8427e5 100644 --- a/Notify.php +++ b/Notify.php @@ -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; } -- 2.39.2