]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/command.php
Group discovery from text functions polished
[quix0rs-gnu-social.git] / lib / command.php
index 04c2e57ec8689b3372b3adf79ad39844e162c22d..d15fe43ce17f2356ce18027024112202dab0a3ad 100644 (file)
@@ -980,7 +980,7 @@ class GroupsCommand extends Command
     {
         $group = $this->user->getGroups();
         $groups=array();
-        while ($group->fetch()) {
+        while ($group instanceof User_group && $group->fetch()) {
             $groups[]=$group->nickname;
         }
         if(count($groups)==0){