diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-10-30 22:21:23 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-10-30 22:21:23 +0000 |
commit | b5c5261077640d2390f4e3c44cc51bfe4bed2e4c (patch) | |
tree | 05d60d56e8b6fdf3a930c2ae3759611792f64eaf /mod | |
parent | 501c9ff40091d0ebd38059b475c8f8f276e46ff0 (diff) | |
download | elgg-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')
-rw-r--r-- | mod/groups/start.php | 6 |
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]); + } } } |