properly encode groups as json, not ',' separated

This commit is contained in:
Jörn Friedrich Dreyer 2014-08-18 19:47:50 +02:00
parent 8f7676c762
commit a1e8dd14a1

View file

@ -58,8 +58,8 @@ if (OC_User::isAdminUser(OC_User::getUser())) {
$users[] = array(
'name' => $uid,
'displayname' => $displayname,
'groups' => join(', ', OC_Group::getUserGroups($uid)),
'subadmin' => join(', ', OC_SubAdmin::getSubAdminsGroups($uid)),
'groups' => OC_Group::getUserGroups($uid),
'subadmin' => OC_SubAdmin::getSubAdminsGroups($uid),
'quota' => OC_Preferences::getValue($uid, 'files', 'quota', 'default'),
'storageLocation' => $user->getHome(),
'lastLogin' => $user->getLastLogin(),
@ -82,7 +82,7 @@ if (OC_User::isAdminUser(OC_User::getUser())) {
$users[] = array(
'name' => $uid,
'displayname' => $user->getDisplayName(),
'groups' => join(', ', $userGroups),
'groups' => $userGroups,
'quota' => OC_Preferences::getValue($uid, 'files', 'quota', 'default'),
'storageLocation' => $user->getHome(),
'lastLogin' => $user->getLastLogin(),