# HG changeset patch # User Kim Alvefur # Date 1488396838 -3600 # Node ID fb1987d4ac6299b303e0eceaf6b04f0f89827e69 # Parent 3e1a85c5194cf2396a6683f1788ad926a32d68a3 mod_http_muc_log: Rename loop variable to avoid name clash diff -r 3e1a85c5194c -r fb1987d4ac62 mod_http_muc_log/mod_http_muc_log.lua --- 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