From eb7e2d7d354bfb7214f1aa07fad1b348656cc916 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Wed, 9 May 2012 11:35:36 +0200 Subject: [PATCH] Sharing: even if a user has more groups in common, he should appear only once in the dropdown list --- apps/files_sharing/ajax/userautocomplete.php | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/files_sharing/ajax/userautocomplete.php b/apps/files_sharing/ajax/userautocomplete.php index 99cc81bce0..0e1bf6d588 100755 --- a/apps/files_sharing/ajax/userautocomplete.php +++ b/apps/files_sharing/ajax/userautocomplete.php @@ -23,6 +23,7 @@ foreach ($userGroups as $group) { $groups[] = ""; } } +$users = array_unique($users); $users[] = ""; $groups[] = ""; $users = array_merge($users, $groups);