From 260de03a04b3bfc373a5d2095208f97912bb8658 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 21 Mar 2016 12:56:35 +0800 Subject: [PATCH] NotifySend.php --- NotifySend.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/NotifySend.php b/NotifySend.php index a6319bcd..f924a36d 100644 --- a/NotifySend.php +++ b/NotifySend.php @@ -210,6 +210,11 @@ class Pman_Core_NotifySend extends Pman "Notification event cleared (not required any more)" ."\n"); } + if (is_a($email, 'PEAR_Error')) { + $email =array( + 'error' => $email->toString() + ); + } if (empty($p) && !empty($email['recipients'])) { // make a fake person.. -- 2.39.2