projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
846e15d
)
Notify.php
author
Alan Knowles
<alan@roojs.com>
Mon, 25 Jul 2016 09:58:58 +0000
(17:58 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 25 Jul 2016 09:58:58 +0000
(17:58 +0800)
Notify.php
patch
|
blob
|
history
diff --git
a/Notify.php
b/Notify.php
index
e0dae96
..
f6b22eb
100644
(file)
--- 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);