X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fgroupsnav.php;h=8e5d1a39fb60584f29b001103c74f5fb8ce0ca24;hb=a45cdae0831ad036a85ac4f5f815c771e137e1c5;hp=8439ab63992616d466de2c3ff8fca8be59efd1bb;hpb=4f01bcaf52dd559f0cb7e5c2504c10bfbb102901;p=quix0rs-gnu-social.git diff --git a/lib/groupsnav.php b/lib/groupsnav.php index 8439ab6399..8e5d1a39fb 100644 --- a/lib/groupsnav.php +++ b/lib/groupsnav.php @@ -58,7 +58,7 @@ class GroupsNav extends MoreMenu function haveGroups() { - return (!empty($this->groups) && ($this->groups->N > 0)); + return ($this->groups instanceof User_group && $this->groups->N > 0); } function tag() @@ -70,7 +70,7 @@ class GroupsNav extends MoreMenu { $items = array(); - while ($this->groups->fetch()) { + while ($this->groups instanceof User_group && $this->groups->fetch()) { $items[] = array('placeholder', array('nickname' => $this->groups->nickname, 'mainpage' => $this->groups->homeUrl()),