Sharing: even if a user has more groups in common, he should appear only once in the dropdown list

This commit is contained in:
Arthur Schiwon 2012-05-09 11:35:36 +02:00
parent fae1ce4ea7
commit eb7e2d7d35
1 changed files with 1 additions and 0 deletions

View File

@ -23,6 +23,7 @@ foreach ($userGroups as $group) {
$groups[] = "<option value='".$group."(group)'>".$group." (group) </option>";
}
}
$users = array_unique($users);
$users[] = "</optgroup>";
$groups[] = "</optgroup>";
$users = array_merge($users, $groups);