]> source.dussan.org Git - nextcloud-server.git/commitdiff
properly encode groups as json, not ',' separated
authorJörn Friedrich Dreyer <jfd@butonic.de>
Mon, 18 Aug 2014 17:47:50 +0000 (19:47 +0200)
committerJörn Friedrich Dreyer <jfd@butonic.de>
Tue, 19 Aug 2014 09:21:04 +0000 (11:21 +0200)
settings/ajax/userlist.php

index a99c221beb841c20fbddd1658f18d03261f29f35..807cf5f1899610ad74492e6a8161ee48534d168d 100644 (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(),