aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorringmaster <epithet@gmail.com>2013-09-12 10:49:36 -0400
committerringmaster <epithet@gmail.com>2013-09-12 10:49:36 -0400
commit4fd16c5411cf08430e6124917ce1beae903714bc (patch)
tree9c3cd9351fdbbb9990f582b13f6d560c5ed74178
parent38258fe24686ca6cf8aa89d98521b848d22b6422 (diff)
downloadnextcloud-server-4fd16c5411cf08430e6124917ce1beae903714bc.tar.gz
nextcloud-server-4fd16c5411cf08430e6124917ce1beae903714bc.zip
Ensure creation of a JSON array, not an object.
-rw-r--r--settings/users.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/users.php b/settings/users.php
index b2af60c60c7..3f12e23ea6b 100644
--- a/settings/users.php
+++ b/settings/users.php
@@ -59,7 +59,7 @@ foreach($accessibleusers as $uid => $displayName) {
$users[] = array(
"name" => $uid,
"displayName" => $displayName,
- "groups" => OC_Group::getUserGroups($uid),
+ "groups" => array_values(OC_Group::getUserGroups($uid)),
'quota' => $quota,
'isQuotaUserDefined' => $isQuotaUserDefined,
'subadmin' => OC_SubAdmin::getSubAdminsGroups($uid),