aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-08-08 12:38:35 +0200
committerKim Alvefur <zash@zash.se>2014-08-08 12:38:35 +0200
commit5d689d9a6a0ea56f17d57ec213aff527c5965169 (patch)
tree6569b43faef1c6deba8c4159109f0e5cd13344f8 /core
parenta6da25a2a1cb366b2fa3beb4191536f98c3df76d (diff)
downloadprosody-5d689d9a6a0ea56f17d57ec213aff527c5965169.tar.gz
prosody-5d689d9a6a0ea56f17d57ec213aff527c5965169.zip
storagemanager: Fix map store shim if store is empty
Diffstat (limited to 'core')
-rw-r--r--core/storagemanager.lua2
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)