projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f12ba07
)
mod_storage_sql: Fix setting value to false in map store
author
Kim Alvefur
<zash@zash.se>
Fri, 19 Feb 2016 18:22:18 +0000
(19:22 +0100)
committer
Kim Alvefur
<zash@zash.se>
Fri, 19 Feb 2016 18:22:18 +0000
(19:22 +0100)
plugins/mod_storage_sql.lua
patch
|
blob
|
history
diff --git
a/plugins/mod_storage_sql.lua
b/plugins/mod_storage_sql.lua
index 34fcaceed57245b96a625b2a23710ebbba5ab9d9..6efa676c0322a3f673b509021227f40266666f38 100644
(file)
--- 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()