summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-03-24 13:36:57 -0700
committerBrion Vibber <brion@pobox.com>2010-03-24 13:38:06 -0700
commitfd608c0de03294eaecb22ab11a0c6d8945c11f38 (patch)
tree4fd58cc6c977ef582e78399586056eeb1e545385
parent5e76e0c8ac1dad9a110b005faad3c6a95d737b9b (diff)
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
-rw-r--r--lib/apiaction.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/apiaction.php b/lib/apiaction.php
index e4a1df3d1..5cedfaefe 100644
--- a/lib/apiaction.php
+++ b/lib/apiaction.php
@@ -1239,7 +1239,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);
}
}