aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_storage_internal.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-07-06 11:24:36 +0200
committerKim Alvefur <zash@zash.se>2017-07-06 11:24:36 +0200
commita65cd04e353b849f6a3cda6ca746378dd309ee28 (patch)
treed54d6743becde2246fed6859f25ec6ee72e0d080 /plugins/mod_storage_internal.lua
parent87805f6e4ed7b0eef2c92cea969da097a53912fe (diff)
parent39bcea0025949af9de9555dee3c2c3f9a5cb7249 (diff)
downloadprosody-a65cd04e353b849f6a3cda6ca746378dd309ee28.tar.gz
prosody-a65cd04e353b849f6a3cda6ca746378dd309ee28.zip
Merge 0.10->trunk
Diffstat (limited to 'plugins/mod_storage_internal.lua')
-rw-r--r--plugins/mod_storage_internal.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/mod_storage_internal.lua b/plugins/mod_storage_internal.lua
index 0a382cee..76052575 100644
--- a/plugins/mod_storage_internal.lua
+++ b/plugins/mod_storage_internal.lua
@@ -62,7 +62,13 @@ end
function archive:find(username, query)
local items, err = datamanager.list_load(username, host, self.store);
- if not items then return items, err; end
+ if not items then
+ if err then
+ return items, err;
+ else
+ return function () end, 0;
+ end
+ end
local count = #items;
local i = 0;
if query then