From c0e997465359626410b3eed9afacf5afaddcbba8 Mon Sep 17 00:00:00 2001 From: Eric J Korpela Date: Sun, 18 Jan 2015 17:19:15 -0800 Subject: [PATCH] Fix a problem with the banishment vote page (prefs is part of user, not a stand alone variable. --- html/user/forum_banishment_vote.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/html/user/forum_banishment_vote.php b/html/user/forum_banishment_vote.php index 6b1011648d..9a0a9e9f79 100644 --- a/html/user/forum_banishment_vote.php +++ b/html/user/forum_banishment_vote.php @@ -51,7 +51,8 @@ if (get_str('action')=="start") { if (!$user) { error_page(tra("No user with this ID found.")); } - $x = $user->banished_until; + BoincForumPrefs::lookup($user); + $x = $user->prefs->banished_until; if ($x>time()) { error_page(tra("User is already banished")); }