summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/api.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api.php b/lib/api.php
index d79dc327e..2af150ab9 100644
--- a/lib/api.php
+++ b/lib/api.php
@@ -1248,7 +1248,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);
}
}
}