Software /
code /
prosody
Diff
core/storagemanager.lua @ 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 |
parent | 6330:a678d15e590e |
child | 6557:8aa967c81cbc |
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)