Fix for API group methods, caused failure or output corruption when pulling up local groups by name in api/statusnet/groups/is_member.json/xml

This commit is contained in:
Brion Vibber 2010-03-24 13:36:57 -07:00
parent 9e0b9857f4
commit a954fd65ba

View File

@ -1273,7 +1273,7 @@ class ApiAction extends Action
if (empty($local)) {
return null;
} else {
return User_group::staticGet('id', $local->id);
return User_group::staticGet('id', $local->group_id);
}
}