X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=NotifySend.php;h=91afa5a1b7c52f06a0e3f6f3f8841f1314150fed;hp=763c7b8425733c0272af49f0b3520e5e7561d64e;hb=8cd2a9237c684aa16bc21e3ac6d3793c49c65400;hpb=006e76ed39eb8456e5dbfe80fb82af9d22c9ea9f diff --git a/NotifySend.php b/NotifySend.php index 763c7b84..91afa5a1 100644 --- a/NotifySend.php +++ b/NotifySend.php @@ -289,8 +289,8 @@ class Pman_Core_NotifySend extends Pman $ff = HTML_FlexyFramework::get(); - - $dom = array_pop(explode('@', $p->email)); + $explode_email = explode('@', $p->email); + $dom = array_pop($explode_email); $mxs = $this->mxs($dom); $ww = clone($w); @@ -462,7 +462,7 @@ class Pman_Core_NotifySend extends Pman $ev = $this->addEvent($successEventName, $w, "{$w->to_email} - {$email['headers']['Subject']}"); $ev->writeEventLog($this->debug_str); - print_R('test??');exit; + if(strtotime($w->act_when) > strtotime("NOW")){ $w->act_when = date('Y-m-d H:i:s'); }