NotifySend.php
authorAlan Knowles <alan@akkbhome.com>
Wed, 6 Apr 2011 15:45:28 +0000 (23:45 +0800)
committerAlan Knowles <alan@akkbhome.com>
Wed, 6 Apr 2011 15:45:28 +0000 (23:45 +0800)
NotifySend.php

index f29826b..eb4a710 100644 (file)
@@ -92,8 +92,12 @@ class Pman_Core_NotifySend extends Pman
                 die("GREYLISTED");
             }
             // fail.. = log and give up..
-            $this->addEvent('NOTIFY', $w, 'FAILED - '. $res->toString());
-            
+            $id = $this->addEvent('NOTIFY', $w, 'FAILED - '. $res->toString());
+            $w->sent = date('Y-m-d H:i:s');
+            $w->msgid = '';
+            $w->event_id = $id;
+            $w->update($ww);
+        
             
             
         }