Commit 5a6d7e77 authored by Rob Swindell's avatar Rob Swindell 💬
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
......@@ -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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment