Not use group filter sql if not exist filter_group data - #782

This commit is contained in:
enriquecd 2017-04-26 12:09:35 +02:00
parent aa223aa583
commit d2b409d276
1 changed files with 3 additions and 2 deletions

View File

@ -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] .= '<div id="add_action-div-'.$alert['id'].'" style="display:none;text-align:left">';
$data[2] .= '<form id="add_action_form-'.$alert['id'] . '" method="post">';
$data[2] .= '<table class="databox_color" style="width:100%">';