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 | 5d689d9a6a0ea56f17d57ec213aff527c5965169 (patch) | |
tree | 6569b43faef1c6deba8c4159109f0e5cd13344f8 | |
parent | a6da25a2a1cb366b2fa3beb4191536f98c3df76d (diff) | |
download | prosody-5d689d9a6a0ea56f17d57ec213aff527c5965169.tar.gz prosody-5d689d9a6a0ea56f17d57ec213aff527c5965169.zip |
storagemanager: Fix map store shim if store is empty
-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) |