From 4fd16c5411cf08430e6124917ce1beae903714bc Mon Sep 17 00:00:00 2001 From: ringmaster Date: Thu, 12 Sep 2013 10:49:36 -0400 Subject: Ensure creation of a JSON array, not an object. --- settings/users.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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), -- cgit v1.2.3