mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-24 01:51:01 +00:00
[fix] Stops multiplication, in database, of a same user config item (error of variable name).
This commit is contained in:
parent
1cecaa7926
commit
d1d3498b62
1 changed files with 1 additions and 1 deletions
|
@ -193,7 +193,7 @@ class Database {
|
||||||
public function updateUserConfig($userId, $key, $value) {
|
public function updateUserConfig($userId, $key, $value) {
|
||||||
$config = $this->getConfigUser($userId);
|
$config = $this->getConfigUser($userId);
|
||||||
|
|
||||||
if (!isset ($user_config[$key])) {
|
if (! isset($config[$key])) {
|
||||||
$sql = "INSERT INTO users_config (value, user_id, name) VALUES (?, ?, ?)";
|
$sql = "INSERT INTO users_config (value, user_id, name) VALUES (?, ?, ?)";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in a new issue