Skip to content
Snippets Groups Projects
Commit 701009bd authored by Arthur Schiwon's avatar Arthur Schiwon
Browse files

dispayNamesInGroup(s) should always return uid as key in the result attr, fixes #5209

parent 2747862b
No related branches found
No related tags found
No related merge requests found
...@@ -268,7 +268,7 @@ class OC_Group { ...@@ -268,7 +268,7 @@ class OC_Group {
$users = $group->searchDisplayName($search, $limit, $offset); $users = $group->searchDisplayName($search, $limit, $offset);
$displayNames = array(); $displayNames = array();
foreach ($users as $user) { foreach ($users as $user) {
$displayNames[] = $user->getDisplayName(); $displayNames[$user->getUID()] = $user->getDisplayName();
} }
return $displayNames; return $displayNames;
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment