aboutsummaryrefslogtreecommitdiff
path: root/mod/groups
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-10-30 22:21:23 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-10-30 22:21:23 +0000
commitb5c5261077640d2390f4e3c44cc51bfe4bed2e4c (patch)
tree05d60d56e8b6fdf3a930c2ae3759611792f64eaf /mod/groups
parent501c9ff40091d0ebd38059b475c8f8f276e46ff0 (diff)
downloadelgg-b5c5261077640d2390f4e3c44cc51bfe4bed2e4c.tar.gz
elgg-b5c5261077640d2390f4e3c44cc51bfe4bed2e4c.tar.bz2
checking if the site has any groups before looping over them
git-svn-id: http://code.elgg.org/elgg/trunk@7148 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups')
-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]);
+ }
}
}