aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/poche
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2014-01-21 04:46:14 -0800
committerNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2014-01-21 04:46:14 -0800
commit3ae345b3d7136057bcb88783a76ffbdc740b4416 (patch)
treee8c852913d7cce96ecd4acda4cf342b52dcb64e2 /inc/poche
parent1cecaa7926cee3d8e1ce4c6e369c52ad98d49e3f (diff)
parentd1d3498b62d00a88968378a3244ffd479a852b2e (diff)
downloadwallabag-3ae345b3d7136057bcb88783a76ffbdc740b4416.tar.gz
wallabag-3ae345b3d7136057bcb88783a76ffbdc740b4416.tar.zst
wallabag-3ae345b3d7136057bcb88783a76ffbdc740b4416.zip
Merge pull request #410 from Lonnytunes/dev
Fix: stops multiplication, in database, of a same user config item
Diffstat (limited to 'inc/poche')
-rw-r--r--inc/poche/Database.class.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/poche/Database.class.php b/inc/poche/Database.class.php
index 04731821..48ec5abf 100644
--- a/inc/poche/Database.class.php
+++ b/inc/poche/Database.class.php
@@ -193,7 +193,7 @@ class Database {
193 public function updateUserConfig($userId, $key, $value) { 193 public function updateUserConfig($userId, $key, $value) {
194 $config = $this->getConfigUser($userId); 194 $config = $this->getConfigUser($userId);
195 195
196 if (!isset ($user_config[$key])) { 196 if (! isset($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 {