1
0
mirror of https://github.com/moparisthebest/wallabag synced 2024-11-27 11:22:17 -05:00

[fix] Stops multiplication, in database, of a same user config item (error of variable name).

This commit is contained in:
Lonnytunes 2014-01-20 00:44:51 +01:00
parent 1cecaa7926
commit d1d3498b62

View 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 {