Commit 95d75746 authored by Oliver Bock's avatar Oliver Bock

DBOINCP-116: fix BOINC API calls in boincwork module

parent 86889628
......@@ -389,9 +389,9 @@ function projectprefs_page($action = null, $venue = null) {
$_SESSION['prefs venue'] = 'generic';
// If the user has removed their default preference set, make it generic
require_boinc('user');
require_boinc('boinc_db');
global $user;
$boinc_user = lookup_user_email_addr($user->mail);
$boinc_user = BoincUser::lookup_email_addr($user->mail);
if ($boinc_user->venue == $venue) {
$boinc_user->venue = '';
venue_update($boinc_user);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment