mod_http_muc_log/mod_http_muc_log.lua
changeset 2596 fb1987d4ac62
parent 2595 3e1a85c5194c
child 2597 b61b0ff1c0f9
--- a/mod_http_muc_log/mod_http_muc_log.lua	Wed Mar 01 20:31:08 2017 +0100
+++ b/mod_http_muc_log/mod_http_muc_log.lua	Wed Mar 01 20:33:58 2017 +0100
@@ -215,10 +215,10 @@
 	local next_when, prev_when = "", "";
 	local date_list = archive.dates and archive:dates(room);
 	if date_list then
-		for i = 1, #date_list do
-			if date_list[i] == date then
-				next_when = date_list[i+1] or "";
-				prev_when = date_list[i-1] or "";
+		for j = 1, #date_list do
+			if date_list[j] == date then
+				next_when = date_list[j+1] or "";
+				prev_when = date_list[j-1] or "";
 				break;
 			end
 		end