#10152 fixed error 500 in notifications group

This commit is contained in:
Daniel Cebrian 2023-01-17 11:05:43 +01:00
parent 2db24935c0
commit bc5e1c7541

View File

@ -142,7 +142,7 @@ function users_get_groups_for_select(
null null
); );
if ($id_groups !== null) { if ($id_groups !== null && empty($id_groups) === false) {
$children = groups_get_children($id_groups); $children = groups_get_children($id_groups);
foreach ($children as $child) { foreach ($children as $child) {
unset($user_groups[$child['id_grupo']]); unset($user_groups[$child['id_grupo']]);