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"));
}