From 9a005d90ca9e5b5d5ad76b0bdadc3f62e1df11e6 Mon Sep 17 00:00:00 2001 From: "Janus B. Kristensen" Date: Thu, 6 Jan 2005 14:10:16 +0000 Subject: [PATCH] Minor fix to user ignore function. When removing a user this no longer removes all users in the list. svn path=/trunk/boinc/; revision=5002 --- html/user/edit_forum_preferences_action.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/html/user/edit_forum_preferences_action.php b/html/user/edit_forum_preferences_action.php index bd08d75a59..0dfb8e44ad 100644 --- a/html/user/edit_forum_preferences_action.php +++ b/html/user/edit_forum_preferences_action.php @@ -71,17 +71,17 @@ $answer_sort = $HTTP_POST_VARS["answer_sort"]; $forum_sorting=mysql_escape_string(implode("|",array($forum_sort,$thread_sort,$faq_sort,$answer_sort))); $has_prefs=mysql_query("select * from forum_preferences where userid='".$user->id."'"); +$ignorelist = $user->ignorelist; if ($add_user_to_filter){ //see if we should add any users to the ignorelist $user_to_add = $HTTP_POST_VARS["forum_filter_user"]; if ($user_to_add!="" and $user_to_add==strval(intval($user_to_add))){ - $ignorelist = $user->ignorelist."|".$user_to_add; - } else { - $ignorelist = $user->ignorelist; + $ignorelist.="|".$user_to_add; } } + $ignored_users = explode("|",$ignorelist); for ($i=1;$i