mirror of https://github.com/BOINC/boinc.git
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:
parent
f8c531599c
commit
9440c29781
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue