Report/SendEventErrors.php
authorAlan Knowles <alan@roojs.com>
Thu, 24 Mar 2016 04:02:40 +0000 (12:02 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 24 Mar 2016 04:02:40 +0000 (12:02 +0800)
Report/SendEventErrors.php

index 87042a6..bec2db7 100644 (file)
@@ -140,6 +140,13 @@ class Pman_Admin_Report_SendEventErrors extends Pman_Roo
             $this->jerror('ERROR-REPORT', 'Nothing to be sent');
         }
         
+        $e = DB_DataObject::factory('Events');
+        $e->init('ERROR-REPORT',false,"Sending");
+                 
+                 
+        $e->event_when = date('Y-m-d H:i:s');
+        $eid = $e->insert();
+        
         $subject = array();
         
         foreach ($summary as $k => $v){