Fix a problem with the banishment vote page (prefs is part of user, not a stand

alone variable.
This commit is contained in:
Eric J Korpela 2015-01-18 17:19:15 -08:00
parent e67c6a12e1
commit c0e9974653
1 changed files with 2 additions and 1 deletions

View File

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