Skip to content
Snippets Groups Projects
Commit 5a6d7e77 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix off-by-one errors in looping through user records

(last user record wouldn't have been updated)

These are rather old update steps (e.g. v3.18), so don't fret it.
parent c0344add
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -42,7 +42,7 @@ function move_laston_address()
if(test)
return 0;
for (i=1; i < last_user; i++) {
for (i=1; i <= last_user; i++) {
u = new User(i);
// print("User: "+i+" Note: "+u.note+" IP: "+u.ip_address);
if (u.ip_address.length == 0 && u.note.length > 0) {
......@@ -66,7 +66,7 @@ function update_birthdates()
if(test)
return 0;
for (i=1; i < last_user; i++) {
for (i=1; i <= last_user; i++) {
u = new User(i);
if (u.birthdate.charAt(2) == '/') {
if(!updated)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment