Merge branch '782-Error-SQL-en-lista-de-alertas' into 'develop'

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

See merge request !412
This commit is contained in:
vgilc 2017-04-27 16:31:45 +02:00
commit b11865ccae
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%">';