NotifySend.php
authorAlan Knowles <alan@roojs.com>
Mon, 21 Mar 2016 04:56:35 +0000 (12:56 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 21 Mar 2016 04:56:35 +0000 (12:56 +0800)
NotifySend.php

index a6319bc..f924a36 100644 (file)
@@ -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..