X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=NotifySend.php;h=91afa5a1b7c52f06a0e3f6f3f8841f1314150fed;hp=01ba2002d76cb82eda6a3e4de0ad452575960aa7;hb=586e4eb470252d837ba18b67e4c3c1702131fd1d;hpb=21481445cf3eedcf256ec7e03a8ea8aea82c277c diff --git a/NotifySend.php b/NotifySend.php index 01ba2002..91afa5a1 100644 --- a/NotifySend.php +++ b/NotifySend.php @@ -224,7 +224,7 @@ class Pman_Core_NotifySend extends Pman 'email' => $email['recipients'] ); } - print_R('test??');exit; + if ($email === false || isset($email['error']) || empty($p)) { // object returned 'false' - it does not know how to send it.. $ev = $this->addEvent('NOTIFY', $w, isset($email['error']) ? @@ -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);