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 5e76e0c8ac
commit fd608c0de0

View File

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