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) {