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:36:57 -0700
commita954fd65ba00328cd1a76e620113d2f639340aaf (patch)
treec7ced5d52a3cc11534fd6870af48a4a08ae71c3b
parent9e0b9857f435bf45d353bc88eb2462d483bcc46b (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 e6aaf9316..9fc1a0779 100644
--- a/lib/apiaction.php
+++ b/lib/apiaction.php
@@ -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);
}
}