]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - scripts/createsim.php
Group discovery from text functions polished
[quix0rs-gnu-social.git] / scripts / createsim.php
index e0ad74c49e6128ad3a12143775926cf07d9fcea5..7fc2ed1d90f1ce86762361aa5d06807f838a4ca6 100644 (file)
@@ -163,7 +163,7 @@ function newNotice($i, $tagmax)
 
     if ($in_group == 0) {
         $groups = $user->getGroups();
-        if ($groups->N > 0) {
+        if ($groups instanceof User_group) {
             $gval = rand(0, $groups->N - 1);
             $groups->fetch(); // go to 0th
             for ($i = 0; $i < $gval; $i++) {