mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Fixed sql error in event list.
This commit is contained in:
parent
427bb5fe12
commit
8b87df0812
@ -1921,9 +1921,15 @@ function html_print_autocomplete_modules($name = 'module',
|
|||||||
$groups = users_get_groups($config['id_user'], "AW", false);
|
$groups = users_get_groups($config['id_user'], "AW", false);
|
||||||
$groups = array_keys($groups);
|
$groups = array_keys($groups);
|
||||||
|
|
||||||
|
if (empty($groups)) {
|
||||||
|
$id_groups = 0;
|
||||||
|
} else {
|
||||||
|
$id_groups = implode(',', $groups);
|
||||||
|
}
|
||||||
|
|
||||||
$agents = db_get_all_rows_sql('SELECT id_agente
|
$agents = db_get_all_rows_sql('SELECT id_agente
|
||||||
FROM tagente
|
FROM tagente
|
||||||
WHERE id_grupo IN (' . implode(',', $groups) . ')');
|
WHERE id_grupo IN (' . $id_groups . ')');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$agents = db_get_all_rows_sql('SELECT id_agente
|
$agents = db_get_all_rows_sql('SELECT id_agente
|
||||||
|
Loading…
x
Reference in New Issue
Block a user