diff options
author | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-12-23 11:23:12 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-12-23 11:23:12 +0100 |
commit | da5fc42f615eeb45a702604970f94967507fb432 (patch) | |
tree | 515c4b9c8286ae363f77722c91acb878151dc386 | |
parent | 1151e9cc8f8434c7f09232db6b814ac9a2ca578a (diff) | |
download | wallabag-da5fc42f615eeb45a702604970f94967507fb432.tar.gz wallabag-da5fc42f615eeb45a702604970f94967507fb432.tar.zst wallabag-da5fc42f615eeb45a702604970f94967507fb432.zip |
[fix] bug with queries when postgresql is used
-rw-r--r-- | inc/poche/Database.class.php | 4 |
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); |