From cfd2bac4321fb9e43fe8f05ebf0790dac0af0d8a Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 28 Jan 2016 15:48:32 +0800 Subject: [PATCH] NotifySend.php --- NotifySend.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/NotifySend.php b/NotifySend.php index af1d870c..8bcb973e 100644 --- a/NotifySend.php +++ b/NotifySend.php @@ -210,13 +210,15 @@ class Pman_Core_NotifySend extends Pman "Notification event cleared (not required any more)" ."\n"); } - + if (empty($p) && !empty($email['rcpts'])) { // make a fake person.. $p = (object) array( 'email' => $email['rcpts'] ); } + print_R($email);exit; + if ($email === false || isset($email['error']) || empty($p)) { // object returned 'false' - it does not know how to send it.. -- 2.39.2