aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/start.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/groups/start.php')
-rw-r--r--mod/groups/start.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/groups/start.php b/mod/groups/start.php
index d6db817b8..e2ddec5d1 100644
--- a/mod/groups/start.php
+++ b/mod/groups/start.php
@@ -421,8 +421,10 @@
'limit' => 999
));
- foreach ($groups as $group) {
- unset($returnvalue[$group->group_acl]);
+ if ($groups) {
+ foreach ($groups as $group) {
+ unset($returnvalue[$group->group_acl]);
+ }
}
}