mirror of https://github.com/BOINC/boinc.git
Fix a problem with the banishment vote page (prefs is part of user, not a stand
alone variable.
This commit is contained in:
parent
e67c6a12e1
commit
c0e9974653
|
@ -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"));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue