]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
checking if the site has any groups before looping over them
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 30 Oct 2010 22:21:23 +0000 (22:21 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 30 Oct 2010 22:21:23 +0000 (22:21 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@7148 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/groups/start.php

index d6db817b8a60494534c8111dbd7f637897882fc4..e2ddec5d10d9b891cdbc637c8203237044d34ceb 100644 (file)
                                'limit' => 999
                        ));
 
-                       foreach ($groups as $group) {
-                               unset($returnvalue[$group->group_acl]);
+                       if ($groups) {
+                               foreach ($groups as $group) {
+                                       unset($returnvalue[$group->group_acl]);
+                               }
                        }
                }