Report/SendEventErrors.php
authoredward <edward@roojs.com>
Fri, 5 Feb 2016 04:25:42 +0000 (12:25 +0800)
committeredward <edward@roojs.com>
Fri, 5 Feb 2016 04:25:42 +0000 (12:25 +0800)
Report/SendEventErrors.php

index 41d3930..52607aa 100644 (file)
@@ -118,12 +118,13 @@ class Pman_Admin_Report_SendEventErrors extends Pman_Roo
         
         $events->whereAdd("Events.event_when > NOW() - INTERVAL 1 DAY");
         
+        $exclude = array_unique(array_filter(array_map('trim', explode(',', $this->opts['exclude']))));
+        
         if(!empty($exclude)){
             $events->whereAddIn('!Events.action', $exclude, 'string');
         }
         
-        $events->groupBy('Events.action');
-        $events->orderBy('Events.action ASC');
+        print_R($exclude);exit;
         
         
         $this->jok("Done");