mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-16 10:22:14 +01:00
[fix] bug with queries when postgresql is used
This commit is contained in:
parent
1151e9cc8f
commit
da5fc42f61
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user