correct groups from Profile::getGroups()
This commit is contained in:
parent
d07780b478
commit
cd3bc8f4ef
@ -350,6 +350,10 @@ class Profile extends Managed_DataObject
|
||||
self::cacheSet($keypart, implode(',', $ids));
|
||||
}
|
||||
|
||||
if (!is_null($offset) && !is_null($limit)) {
|
||||
$ids = array_slice($ids, $offset, $limit);
|
||||
}
|
||||
|
||||
return User_group::multiGet('id', $ids);
|
||||
}
|
||||
|
||||
|
@ -259,7 +259,7 @@ class ProfileAction extends Action
|
||||
// TRANS: H2 text for user group membership statistics.
|
||||
$this->statsSectionLink('usergroups', _('Groups'));
|
||||
$this->text(' ');
|
||||
$this->text($this->profile->getGroups()->N);
|
||||
$this->text($this->profile->getGroups(0, null)->N);
|
||||
$this->elementEnd('h2');
|
||||
|
||||
if ($groups) {
|
||||
|
Loading…
Reference in New Issue
Block a user