From b4057e2fafdffeff8aa9f87c60a347864b5bc86b Mon Sep 17 00:00:00 2001 From: edward Date: Fri, 5 Feb 2016 12:04:01 +0800 Subject: [PATCH] Report/SendEventErrors.php --- Report/SendEventErrors.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Report/SendEventErrors.php b/Report/SendEventErrors.php index 7008ae6..7df1283 100644 --- a/Report/SendEventErrors.php +++ b/Report/SendEventErrors.php @@ -36,7 +36,6 @@ class Pman_Admin_Report_SendEventErrors extends Pman_Roo function get($args, $opts) { - print_R($opts);exit; $this->opts = $opts; $this->transObj = DB_DataObject::Factory('core_enum'); @@ -64,6 +63,10 @@ class Pman_Admin_Report_SendEventErrors extends Pman_Roo $events->whereAdd("Events.event_when > NOW() - INTERVAL 1 DAY"); + if(!empty($this->opt['exclude'])){ + $exclude = array_unique(array_filter(array_map('trim', explode(',', $this->opt['exclude'])))); + } + $events->groupBy('Events.action'); $events->orderBy('Events.action ASC'); -- 2.39.2