mirror of https://github.com/BOINC/boinc.git
- 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:
parent
a22be6b334
commit
33cf66edeb
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue