# HG changeset patch # User Kim Alvefur # Date 1407494315 -7200 # Node ID 584d5229cb91f324a425cd106d4e2a01300c6764 # Parent fcaaafe4062f647c4a9ea3e5eb3243229e8822b4 storagemanager: Fix map store shim if store is empty diff -r fcaaafe4062f -r 584d5229cb91 core/storagemanager.lua --- 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)