# HG changeset patch # User Kim Alvefur # Date 1455906138 -3600 # Node ID d00d8cfcc9a8061b59ffd6e6b3446609f2236351 # Parent 7ae430fecf12e613ee596adcbb0ebb370d7184fd mod_storage_sql: Fix setting value to false in map store diff -r 7ae430fecf12 -r d00d8cfcc9a8 plugins/mod_storage_sql.lua --- a/plugins/mod_storage_sql.lua Fri Feb 19 12:15:02 2016 +0000 +++ b/plugins/mod_storage_sql.lua Fri Feb 19 19:22:18 2016 +0100 @@ -148,7 +148,8 @@ 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()