Web: fix BoincProfile::delete() to use object attributes

Now it is consistent with other member functions in the DB layer.
This commit is contained in:
Christian Beer 2015-12-09 08:08:36 +01:00
parent f8c531599c
commit 9440c29781
1 changed files with 2 additions and 2 deletions

View File

@ -442,9 +442,9 @@ class BoincProfile {
$db = BoincDb::get();
return $db->enum_fields('profile', 'BoincProfile', $fields, $where_clause, $order_clause);
}
function delete($userid) {
function delete() {
$db = BoincDb::get();
return $db->delete_aux("userid=$userid");
return $db->delete_aux("userid=".$this->userid);
}
static function delete_aux($clause) {
$db = BoincDb::get();