From 8aa1818f9aab3597c310eb01ca338f8246773d3a 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 --- 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 4e51670b9b..5b7a7b6972 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) {