diff options
author | ringmaster <epithet@gmail.com> | 2013-09-12 10:49:36 -0400 |
---|---|---|
committer | ringmaster <epithet@gmail.com> | 2013-09-12 10:49:36 -0400 |
commit | 4fd16c5411cf08430e6124917ce1beae903714bc (patch) | |
tree | 9c3cd9351fdbbb9990f582b13f6d560c5ed74178 | |
parent | 38258fe24686ca6cf8aa89d98521b848d22b6422 (diff) | |
download | nextcloud-server-4fd16c5411cf08430e6124917ce1beae903714bc.tar.gz nextcloud-server-4fd16c5411cf08430e6124917ce1beae903714bc.zip |
Ensure creation of a JSON array, not an object.
-rw-r--r-- | settings/users.php | 2 |
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), |