NotifySend.php
authorleon <leon@roojs.com>
Tue, 1 Mar 2022 09:13:13 +0000 (17:13 +0800)
committerleon <leon@roojs.com>
Tue, 1 Mar 2022 09:13:13 +0000 (17:13 +0800)
NotifySend.php

index ac1970f..fd50055 100644 (file)
@@ -101,6 +101,8 @@ class Pman_Core_NotifySend extends Pman
         if (!$w->get($id)) {
             $this->errorHandler("invalid id\n");
         }
+        $ev = $this->addEvent('NOTIFYFAIL', $w, isset($email['error'])  ?
+                            $email['error'] : "INTERNAL ERROR  - We can not handle " . $w->ontable);
         $this->errorHandler("test\n");
         if (!$force && strtotime($w->act_when) < strtotime($w->sent)) {