diff --git a/classes/User_group.php b/classes/User_group.php index 406537dd8a..1ec2b09ae8 100644 --- a/classes/User_group.php +++ b/classes/User_group.php @@ -409,7 +409,7 @@ class User_group extends Managed_DataObject // Are there any matching remote groups this profile's in? if ($profile) { - $group = $profile->getGroups(); + $group = $profile->getGroups(0, null); while ($group->fetch()) { if ($group->nickname == $nickname) { // @fixme is this the best way?