diff mod_http_muc_log/mod_http_muc_log.lua @ 2592:fb1987d4ac62

mod_http_muc_log: Rename loop variable to avoid name clash
author Kim Alvefur <zash@zash.se>
date Wed, 01 Mar 2017 20:33:58 +0100
parents 3e1a85c5194c
children b61b0ff1c0f9
line wrap: on
line diff
--- 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