From 0164a7b918afe7e87eafbcc78361a71faae71276 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Sat, 9 Nov 2013 16:29:27 +0100 Subject: [PATCH] [FIX] Wrong column name in worker tables --- public/include/classes/worker.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/include/classes/worker.class.php b/public/include/classes/worker.class.php index 3e1f91b2..8f6f4696 100644 --- a/public/include/classes/worker.class.php +++ b/public/include/classes/worker.class.php @@ -26,7 +26,7 @@ class Worker extends Base { } else { // Prefix the WebUser to Worker name $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()) ) $iFailed++; }