mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
#10152 fixed error 500 in notifications group
This commit is contained in:
parent
2db24935c0
commit
bc5e1c7541
@ -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']]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user