removing argument table
This commit is contained in:
parent
0e3ebe6bde
commit
65bcabbd28
@ -122,10 +122,9 @@ class User {
|
|||||||
* Update a single row in a table
|
* Update a single row in a table
|
||||||
* @param userID int Account ID
|
* @param userID int Account ID
|
||||||
* @param field string Field to update
|
* @param field string Field to update
|
||||||
* @param table string Table to update
|
|
||||||
* @return bool
|
* @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");
|
$stmt = $this->mysqli->prepare("UPDATE $this->table SET " . $field['name'] . " = ? WHERE userId = ? LIMIT 1");
|
||||||
if ($this->checkStmt($stmt)) {
|
if ($this->checkStmt($stmt)) {
|
||||||
$stmt->bind_param($field['type'].'i', $field['value'], $userID);
|
$stmt->bind_param($field['type'].'i', $field['value'], $userID);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user