util/datamanager.lua
changeset 6996 dc0c6b8dc638
parent 6995 0622f2820d1d
child 6997 507301531cf5
--- a/util/datamanager.lua	Fri Dec 11 20:07:22 2015 +0100
+++ b/util/datamanager.lua	Fri Dec 11 20:11:48 2015 +0100
@@ -234,7 +234,7 @@
 	if callback(username, host, datastore) == false then return true; end
 	-- save the datastore
 
-	local data = "item(" ..  serialize(data) .. ");\n";
+	data = "item(" ..  serialize(data) .. ");\n";
 	local ok, msg = append(username, host, datastore, "list", data);
 	if not ok then
 		log("error", "Unable to write to %s storage ('%s') for user: %s@%s", datastore, msg, username or "nil", host or "nil");