Software /
code /
prosody
Diff
core/storagemanager.lua @ 7151:584d5229cb91
storagemanager: Fix map store shim if store is empty
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 08 Aug 2014 12:38:35 +0200 |
parent | 7150:fcaaafe4062f |
child | 7152:ca64255bf7cd |
line wrap: on
line diff
--- a/core/storagemanager.lua Thu Aug 07 12:15:15 2014 -0400 +++ b/core/storagemanager.lua Fri Aug 08 12:38:35 2014 +0200 @@ -103,7 +103,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)