]> git.mxchange.org Git - quix0rs-gnu-social.git/commit
if parameters are not 0, null then limit will be PROFILES_PER_PAGE
authorMikael Nordfeldth <mmn@hethane.se>
Mon, 6 Aug 2012 09:42:32 +0000 (11:42 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Mon, 12 Aug 2013 10:50:23 +0000 (12:50 +0200)
commitf433f7ce774d977466891a9e432dc722a2dde536
tree040a9de32b5d89edc8322344d9a0eca708197cf3
parentea837cea673fd280caa20b9d8a3814da55bf7643
if parameters are not 0, null then limit will be PROFILES_PER_PAGE

If you look at classes/User_group.php on line 412 in the current code, you can see that a call to $profile->getGroups() is made. This implies getGroups($offset=0, $limit=PROFILES_PER_PAGE) only giving a limited amount of groups.

This means only the first 20 groups in an ascending numerical order by locally stored User_group->id will be addressable with the bangtag syntax.

I solved this by making the getGroups() call to the same one made in Profile->isMember(), i.e. $profile->getGroups(0, null);
classes/User_group.php