diff options
author | Kim Alvefur <zash@zash.se> | 2016-02-19 19:22:18 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-02-19 19:22:18 +0100 |
commit | 1da9cde6aed4d2dac15e97120607ee80aa84672d (patch) | |
tree | c95639918dabc636f46534e66815c23420b4bf32 /plugins/mod_storage_sql.lua | |
parent | 4c3e8cf880ebcf95e3258b907e49577e64e26e34 (diff) | |
download | prosody-1da9cde6aed4d2dac15e97120607ee80aa84672d.tar.gz prosody-1da9cde6aed4d2dac15e97120607ee80aa84672d.zip |
mod_storage_sql: Fix setting value to false in map store
Diffstat (limited to 'plugins/mod_storage_sql.lua')
-rw-r--r-- | plugins/mod_storage_sql.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mod_storage_sql.lua b/plugins/mod_storage_sql.lua index 34fcacee..6efa676c 100644 --- a/plugins/mod_storage_sql.lua +++ b/plugins/mod_storage_sql.lua @@ -148,7 +148,8 @@ function map_store:get(username, key) return result; end function map_store:set(username, key, data) - return self:set_keys(username, { [key] = data or self.remove }); + if data == nil then data = self.remove; end + return self:set_keys(username, { [key] = data }); end function map_store:set_keys(username, keydatas) local ok, result = engine:transaction(function() |