Change History
New api methods will be announced here. Changes in our data that is relevant to checkers scripts/tags will also be announced here.
Changed By: magma1447
Change Date: March 02, 2018 05:45PM
Re: Big boring changes incoming (PHP7)
[b]Another 0-based index issue[/b]
https://project-gc.com/Challenges//26424
[string ""]:1423: attempt to index global 'lastFind' (a nil value)
The issue comes from this function:
[code]
function getLastFind (profileId)
lastFinds = PGC.GetFinds( profileId, { fields = { 'gccode', 'visitdate', 'cache_name'},
order = 'NEWESTFIRST',
limit = 1} )
return lastFinds[1]
end
[/code]
https://project-gc.com/Challenges//26933 seems to have the same code.
Original Message
Author: magma1447
Date: March 02, 2018 05:32PM
Re: Big boring changes incoming (PHP7)
[b]Another 0-based index issue[/b]
https://project-gc.com/Challenges//26424
[string ""]:1423: attempt to index global 'lastFind' (a nil value)
The issue comes from this function:
[code]
function getLastFind (profileId)
lastFinds = PGC.GetFinds( profileId, { fields = { 'gccode', 'visitdate', 'cache_name'},
order = 'NEWESTFIRST',
limit = 1} )
return lastFinds[1]
end
[/code]