From 65bcabbd28ccf8df4f6f2bd90fd6291f2c5082e3 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Mon, 20 May 2013 16:31:37 +0200 Subject: [PATCH] removing argument table --- public/include/classes/user.class.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/public/include/classes/user.class.php b/public/include/classes/user.class.php index 0a1dcd20..cb7ff1c7 100644 --- a/public/include/classes/user.class.php +++ b/public/include/classes/user.class.php @@ -122,10 +122,9 @@ class User { * Update a single row in a table * @param userID int Account ID * @param field string Field to update - * @param table string Table to update * @return bool **/ - private function updateSingle($userID, $field, $table) { + private function updateSingle($userID, $field) { $stmt = $this->mysqli->prepare("UPDATE $this->table SET " . $field['name'] . " = ? WHERE userId = ? LIMIT 1"); if ($this->checkStmt($stmt)) { $stmt->bind_param($field['type'].'i', $field['value'], $userID);