From 9440c2978179df3afceee052274ffddf8b5ef650 Mon Sep 17 00:00:00 2001 From: Christian Beer Date: Wed, 9 Dec 2015 08:08:36 +0100 Subject: [PATCH] Web: fix BoincProfile::delete() to use object attributes Now it is consistent with other member functions in the DB layer. --- html/inc/boinc_db.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/inc/boinc_db.inc b/html/inc/boinc_db.inc index 414c0c91bc..88e9f0dfcb 100644 --- a/html/inc/boinc_db.inc +++ b/html/inc/boinc_db.inc @@ -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();