aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/poche
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2013-12-23 11:23:12 +0100
committerNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2013-12-23 11:23:12 +0100
commitda5fc42f615eeb45a702604970f94967507fb432 (patch)
tree515c4b9c8286ae363f77722c91acb878151dc386 /inc/poche
parent1151e9cc8f8434c7f09232db6b814ac9a2ca578a (diff)
downloadwallabag-da5fc42f615eeb45a702604970f94967507fb432.tar.gz
wallabag-da5fc42f615eeb45a702604970f94967507fb432.tar.zst
wallabag-da5fc42f615eeb45a702604970f94967507fb432.zip
[fix] bug with queries when postgresql is used
Diffstat (limited to 'inc/poche')
-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);