]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/toselector.php
Misses this file to merge. I like the comments.
[quix0rs-gnu-social.git] / lib / toselector.php
index b01948ed621fc90a4c709c4ba1a5e73cd3624402..6d424dc259ccc8433c2e5996cd392bc16fe51dbe 100644 (file)
@@ -94,7 +94,7 @@ class ToSelector extends Widget
 
         $groups = $this->user->getGroups();
 
-        while ($groups->fetch()) {
+        while ($groups instanceof User_group && $groups->fetch()) {
             $value = 'group:'.$groups->id;
             if (($this->to instanceof User_group) && $this->to->id == $groups->id) {
                 $default = $value;