]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
[fix] Stops multiplication, in database, of a same user config item (error of variabl... 410/head
authorLonnytunes <lonnytunes@gmx.fr>
Sun, 19 Jan 2014 23:44:51 +0000 (00:44 +0100)
committerLonnytunes <lonnytunes@gmx.fr>
Sun, 19 Jan 2014 23:44:51 +0000 (00:44 +0100)
inc/poche/Database.class.php

index 04731821fb3311a6cd0e6180bfe5d8bc4ec9ebdb..48ec5abf88055fe447655670bd7820906925ca3f 100644 (file)
@@ -193,7 +193,7 @@ class Database {
     public function updateUserConfig($userId, $key, $value) {
         $config = $this->getConfigUser($userId);
         
-        if (!isset ($user_config[$key])) {
+        if (! isset($config[$key])) {
             $sql = "INSERT INTO users_config (value, user_id, name) VALUES (?, ?, ?)";
         }
         else {