Software /
code /
prosody
Changeset
6336:11510d4d3b57
storagemanager: Fix map store shim if store is empty
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 08 Aug 2014 12:38:35 +0200 |
parents | 6335:eaf6e7986934 |
children | 6342:379faad8ce9f |
files | core/storagemanager.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/core/storagemanager.lua Thu Aug 07 18:34:51 2014 -0400 +++ b/core/storagemanager.lua Fri Aug 08 12:38:35 2014 +0200 @@ -84,7 +84,7 @@ __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)