- Users cannot be listed more than once on the ignorelist.

- List is now sorted by userid
(partly patch by Christian Beer)

svn path=/trunk/boinc/; revision=5016
This commit is contained in:
Janus B. Kristensen 2005-01-07 18:25:01 +00:00
parent a22be6b334
commit 33cf66edeb
1 changed files with 5 additions and 1 deletions

View File

@ -79,7 +79,11 @@ if ($add_user_to_filter){ //see if we should add any users to the ignorelist
}
}
$ignored_users = explode("|",$ignorelist);
$ignored_users = explode("|",$ignorelist); //split the list into an array
$ignored_users = array_unique($ignored_users); //a user can only be on the list once
natsort($ignored_users); //sort the list by userid in natural order
$ignored_users=array_values($ignored_users); //reindex
$real_ignorelist = "";
for ($i=1;$i<sizeof($ignored_users);$i++){
if ($ignored_users[$i]!="" and $HTTP_POST_VARS["remove".$ignored_users[$i]]!=""){
//this user will be removed