From da5fc42f615eeb45a702604970f94967507fb432 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Mon, 23 Dec 2013 11:23:12 +0100 Subject: [PATCH] [fix] bug with queries when postgresql is used --- inc/poche/Database.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/poche/Database.class.php b/inc/poche/Database.class.php index d7e9fc1..afe02a4 100644 --- a/inc/poche/Database.class.php +++ b/inc/poche/Database.class.php @@ -194,10 +194,10 @@ class Database { $config = $this->getConfigUser($userId); if (!isset ($user_config[$key])) { - $sql = "INSERT INTO users_config (`value`, `user_id`, `name`) VALUES (?, ?, ?)"; + $sql = "INSERT INTO users_config (value, user_id, name) VALUES (?, ?, ?)"; } else { - $sql = "UPDATE users_config SET `value`=? WHERE `user_id`=? AND `name`=?"; + $sql = "UPDATE users_config SET value=? WHERE user_id=? AND name=?"; } $params = array($value, $userId, $key);