aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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 d7e9fc11..afe02a41 100644
--- a/inc/poche/Database.class.php
+++ b/inc/poche/Database.class.php
@@ -194,10 +194,10 @@ class Database {
194 $config = $this->getConfigUser($userId); 194 $config = $this->getConfigUser($userId);
195 195
196 if (!isset ($user_config[$key])) { 196 if (!isset ($user_config[$key])) {
197 $sql = "INSERT INTO users_config (`value`, `user_id`, `name`) VALUES (?, ?, ?)"; 197 $sql = "INSERT INTO users_config (value, user_id, name) VALUES (?, ?, ?)";
198 } 198 }
199 else { 199 else {
200 $sql = "UPDATE users_config SET `value`=? WHERE `user_id`=? AND `name`=?"; 200 $sql = "UPDATE users_config SET value=? WHERE user_id=? AND name=?";
201 } 201 }
202 202
203 $params = array($value, $userId, $key); 203 $params = array($value, $userId, $key);