Merge branch 'ent-6677-error-sql-en-item-group-alert-report-metaconsola' into 'develop'

fix group alert report

See merge request artica/pandorafms!3587
This commit is contained in:
Daniel Rodriguez 2020-10-30 14:43:28 +01:00
commit 4f1faf6a14
1 changed files with 1 additions and 1 deletions

View File

@ -2872,7 +2872,7 @@ function alerts_get_agent_modules(
$agent_modules = db_get_all_rows_sql($sql);
} else {
$groups = groups_get_children_ids($id_grupo, true);
if (count($groups) > 1) {
if (empty($groups) === false) {
$sql = sprintf(
'SELECT distinct(atm.id_agent_module)
FROM talert_template_modules atm