mod_http_muc_log: Rename loop variable to avoid name clash

Wed, 01 Mar 2017 20:33:58 +0100

author
Kim Alvefur <zash@zash.se>
date
Wed, 01 Mar 2017 20:33:58 +0100
changeset 2592
fb1987d4ac62
parent 2591
3e1a85c5194c
child 2593
b61b0ff1c0f9

mod_http_muc_log: Rename loop variable to avoid name clash

mod_http_muc_log/mod_http_muc_log.lua file | annotate | diff | comparison | revisions
--- 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

mercurial