aboutsummaryrefslogtreecommitdiffstats
path: root/core/storagemanager.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-07-26 00:58:19 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-07-26 00:58:19 +0500
commit147205d667f038b70d7c55052bc4bd9dbb60bfec (patch)
treef1fcd38cfe689afdc9c7f9011322a5e49c075a1b /core/storagemanager.lua
parent1cbe0cea9b54b640b79b7cf91633015750396318 (diff)
downloadprosody-147205d667f038b70d7c55052bc4bd9dbb60bfec.tar.gz
prosody-147205d667f038b70d7c55052bc4bd9dbb60bfec.zip
storagemanager: Fixed a nil access.
Diffstat (limited to 'core/storagemanager.lua')
-rw-r--r--core/storagemanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/storagemanager.lua b/core/storagemanager.lua
index 9e966037..94cea3b3 100644
--- a/core/storagemanager.lua
+++ b/core/storagemanager.lua
@@ -20,7 +20,7 @@ module("storagemanager")
local default_driver_mt = {};
default_driver_mt.__index = default_driver_mt;
function default_driver_mt:open(store)
- return setmetatable({ host = self.host, store = self.store }, default_driver_mt);
+ return setmetatable({ host = self.host, store = store }, default_driver_mt);
end
function default_driver_mt:get(user) return olddm.load(user, self.host, self.store); end
function default_driver_mt:set(user, data) return olddm.store(user, self.host, self.store, data); end