diff options
author | Kim Alvefur <zash@zash.se> | 2014-08-08 12:38:35 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2014-08-08 12:38:35 +0200 |
commit | 07aeb61310bc5187677798f0fcf38e4241ddaae6 (patch) | |
tree | 6569b43faef1c6deba8c4159109f0e5cd13344f8 /core | |
parent | d96a0ef55c6de851369bd0a562caf349d4435c75 (diff) | |
download | prosody-07aeb61310bc5187677798f0fcf38e4241ddaae6.tar.gz prosody-07aeb61310bc5187677798f0fcf38e4241ddaae6.zip |
storagemanager: Fix map store shim if store is empty
Diffstat (limited to 'core')
-rw-r--r-- | core/storagemanager.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/storagemanager.lua b/core/storagemanager.lua index 39eae120..cf2c65d5 100644 --- a/core/storagemanager.lua +++ b/core/storagemanager.lua @@ -103,7 +103,7 @@ local map_shim_mt = { __index = { get = function(self, username, key) local ret, err = self.keyval_store:get(username); - if ret == nil and err then return nil, err end + if ret == nil then return nil, err end return ret[key]; end; set = function(self, username, key, data) |