From bc5e1c754120aee86b670cad95ba5997e74c0bb5 Mon Sep 17 00:00:00 2001 From: Daniel Cebrian Date: Tue, 17 Jan 2023 11:05:43 +0100 Subject: [PATCH] #10152 fixed error 500 in notifications group --- pandora_console/include/functions_users.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/include/functions_users.php b/pandora_console/include/functions_users.php index ad3e6ac3b2..c5826ee36a 100755 --- a/pandora_console/include/functions_users.php +++ b/pandora_console/include/functions_users.php @@ -142,7 +142,7 @@ function users_get_groups_for_select( null ); - if ($id_groups !== null) { + if ($id_groups !== null && empty($id_groups) === false) { $children = groups_get_children($id_groups); foreach ($children as $child) { unset($user_groups[$child['id_grupo']]);