aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc
diff options
context:
space:
mode:
Diffstat (limited to 'inc')
-rw-r--r--inc/poche/Database.class.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/poche/Database.class.php b/inc/poche/Database.class.php
index 0662581b..5c40b026 100644
--- a/inc/poche/Database.class.php
+++ b/inc/poche/Database.class.php
@@ -108,8 +108,8 @@ class Database {
108 public function updatePassword($userId, $password) 108 public function updatePassword($userId, $password)
109 { 109 {
110 $sql_update = "UPDATE users SET password=? WHERE id=?"; 110 $sql_update = "UPDATE users SET password=? WHERE id=?";
111 $params_update = array($password, $id); 111 $params_update = array($password, $userId);
112 $this->updateUserConfig($userId, 'password', $password); 112 $query = $this->executeQuery($sql_update, $params_update);
113 } 113 }
114 114
115 public function updateUserConfig($userId, $key, $value) { 115 public function updateUserConfig($userId, $key, $value) {