We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit cd3bc8f4 authored by Evan Prodromou's avatar Evan Prodromou

correct groups from Profile::getGroups()

parent d07780b4
......@@ -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(0, null)->N);
if ($groups) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment