From d2b409d276852c62181ca9428df0f132bb687649 Mon Sep 17 00:00:00 2001 From: enriquecd Date: Wed, 26 Apr 2017 12:09:35 +0200 Subject: [PATCH] Not use group filter sql if not exist filter_group data - #782 --- pandora_console/godmode/alerts/alert_list.list.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pandora_console/godmode/alerts/alert_list.list.php b/pandora_console/godmode/alerts/alert_list.list.php index aec32ad0ae..4b57931a2c 100644 --- a/pandora_console/godmode/alerts/alert_list.list.php +++ b/pandora_console/godmode/alerts/alert_list.list.php @@ -576,8 +576,9 @@ foreach ($simple_alerts as $alert) { $own_groups = users_get_groups($config['id_user'], 'LM', true); $filter_groups = ''; $filter_groups = implode(',', array_keys($own_groups)); - $actions = alerts_get_alert_actions_filter(true, 'id_group IN (' . $filter_groups . ')'); - + if($filter_groups != null){ + $actions = alerts_get_alert_actions_filter(true, 'id_group IN (' . $filter_groups . ')'); + } $data[2] .= '