summaryrefslogtreecommitdiffstats
path: root/lib/private/group.php
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2013-10-20 20:55:27 +0200
committerArthur Schiwon <blizzz@owncloud.com>2013-10-20 20:55:27 +0200
commit701009bd72829b6ccd58f934c3f9d0db905c82a0 (patch)
treeaecc462098a6f97a6b46cf6cd2468a9ca8d648f2 /lib/private/group.php
parent2747862b139d5b321f1241502b027f4657d1253d (diff)
downloadnextcloud-server-701009bd72829b6ccd58f934c3f9d0db905c82a0.tar.gz
nextcloud-server-701009bd72829b6ccd58f934c3f9d0db905c82a0.zip
dispayNamesInGroup(s) should always return uid as key in the result attr, fixes #5209
Diffstat (limited to 'lib/private/group.php')
-rw-r--r--lib/private/group.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/group.php b/lib/private/group.php
index 9144ef683b6..444788c97f1 100644
--- a/lib/private/group.php
+++ b/lib/private/group.php
@@ -268,7 +268,7 @@ class OC_Group {
$users = $group->searchDisplayName($search, $limit, $offset);
$displayNames = array();
foreach ($users as $user) {
- $displayNames[] = $user->getDisplayName();
+ $displayNames[$user->getUID()] = $user->getDisplayName();
}
return $displayNames;
} else {