From 33cf66edebcdbdf65e8374a435714a00391a7405 Mon Sep 17 00:00:00 2001 From: "Janus B. Kristensen" Date: Fri, 7 Jan 2005 18:25:01 +0000 Subject: [PATCH] - 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 --- html/user/edit_forum_preferences_action.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/html/user/edit_forum_preferences_action.php b/html/user/edit_forum_preferences_action.php index 0dfb8e44ad..b4f8f57f66 100644 --- a/html/user/edit_forum_preferences_action.php +++ b/html/user/edit_forum_preferences_action.php @@ -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