mirror of
https://github.com/moparisthebest/wallabag
synced 2024-11-23 17:42:15 -05:00
Merge pull request #410 from Lonnytunes/dev
Fix: stops multiplication, in database, of a same user config item
This commit is contained in:
commit
3ae345b3d7
@ -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 New Issue
Block a user