From: Alan Knowles Date: Mon, 21 Mar 2016 04:56:35 +0000 (+0800) Subject: NotifySend.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=260de03a04b3bfc373a5d2095208f97912bb8658 NotifySend.php --- 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..