From fb321e4d659362c1108d5c59fbde281729094f7b Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 25 Jul 2016 17:58:58 +0800 Subject: [PATCH] Notify.php --- Notify.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Notify.php b/Notify.php index e0dae963..f6b22ebb 100644 --- a/Notify.php +++ b/Notify.php @@ -247,12 +247,9 @@ class Pman_Core_Notify extends Pman sleep(3); continue; } - if (!$p->person()) { - print_R($p); - exit ; - } + $email = $p->person() ? $p->person()->email : $p->to_email; - if ($this->poolHasDomain($p->person()->email) > $this->max_to_domain) { + if ($this->poolHasDomain($email) > $this->max_to_domain) { if ($pushed === false) { // we only try once to requeue.. @@ -267,7 +264,7 @@ class Pman_Core_Notify extends Pman } - $this->run($p->id,$p->person()->email); + $this->run($p->id,$email); -- 2.39.2