[FIX] Wrong column name in worker tables
This commit is contained in:
parent
5f91cc45bf
commit
0164a7b918
@ -26,7 +26,7 @@ class Worker extends Base {
|
|||||||
} else {
|
} else {
|
||||||
// Prefix the WebUser to Worker name
|
// Prefix the WebUser to Worker name
|
||||||
$value['username'] = "$username." . $value['username'];
|
$value['username'] = "$username." . $value['username'];
|
||||||
$stmt = $this->mysqli->prepare("UPDATE $this->table SET password2 = ?, username = ?, monitor = ? WHERE account_id = ? AND id = ?");
|
$stmt = $this->mysqli->prepare("UPDATE $this->table SET password = ?, username = ?, monitor = ? WHERE account_id = ? AND id = ?");
|
||||||
if ( ! ( $this->checkStmt($stmt) && $stmt->bind_param('ssiii', $value['password'], $value['username'], $value['monitor'], $account_id, $key) && $stmt->execute()) )
|
if ( ! ( $this->checkStmt($stmt) && $stmt->bind_param('ssiii', $value['password'], $value['username'], $value['monitor'], $account_id, $key) && $stmt->execute()) )
|
||||||
$iFailed++;
|
$iFailed++;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user