aboutsummaryrefslogtreecommitdiffstats
path: root/util/datamanager.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-04-20 00:41:49 +0200
committerKim Alvefur <zash@zash.se>2017-04-20 00:41:49 +0200
commita7b9c6de423f4f4572aaf81674903a27fbcd7c67 (patch)
tree6807f13197827f810a9a2cd3dc79efcf2e61e093 /util/datamanager.lua
parent5d4b489c3c77347b9050fae4d6e01a8649817084 (diff)
parent256ab5259da1de5e24691493c0f6a26595e17208 (diff)
downloadprosody-a7b9c6de423f4f4572aaf81674903a27fbcd7c67.tar.gz
prosody-a7b9c6de423f4f4572aaf81674903a27fbcd7c67.zip
Merge 0.10->trunk
Diffstat (limited to 'util/datamanager.lua')
-rw-r--r--util/datamanager.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/datamanager.lua b/util/datamanager.lua
index 6edf7ac0..bd8fb7bb 100644
--- a/util/datamanager.lua
+++ b/util/datamanager.lua
@@ -268,8 +268,8 @@ local function list_store(username, host, datastore, data)
if callback(username, host, datastore) == false then return true; end
-- save the datastore
local d = {};
- for _, item in ipairs(data) do
- d[#d+1] = "item(" .. serialize(item) .. ");\n";
+ for i, item in ipairs(data) do
+ d[i] = "item(" .. serialize(item) .. ");\n";
end
local ok, msg = atomic_store(getpath(username, host, datastore, "list", true), t_concat(d));
if not ok then