From 2523754c95b04277478ca8ddf497b27e1c3af903 Mon Sep 17 00:00:00 2001 From: daniel Date: Fri, 30 Dec 2016 13:14:19 +0100 Subject: [PATCH] fixed errors in reports events for all groups (cherry picked from commit 8aa1818f9aab3597c310eb01ca338f8246773d3a) --- pandora_console/include/functions_events.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pandora_console/include/functions_events.php b/pandora_console/include/functions_events.php index 0ad8db64b8..a30e109348 100644 --- a/pandora_console/include/functions_events.php +++ b/pandora_console/include/functions_events.php @@ -1224,7 +1224,7 @@ function events_get_group_events ($id_group, $period, $date, ' OR id_evento LIKE "%' . io_safe_input($filter_event_search) . '%")'; } - if (!empty($filter_event_type)) { + if (!empty($filter_event_type) && $filter_event_type[0] != 'all') { $sql_where .= ' AND ('; $type = array(); foreach ($filter_event_type as $event_type) { @@ -1367,8 +1367,8 @@ function events_get_agent ($id_agent, $period, $date = 0, } } } - - if (!empty($filter_event_type)) { + + if (!empty($filter_event_type) && $filter_event_type[0] != 'all') { $sql_where .= ' AND ('; $type = array(); foreach ($filter_event_type as $event_type) {