$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(),
$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(),