Black week! There currently is a 10% discount on our memberships.

×

To be able to write in the forum you need to authenticate. Meanwhile it's read-only.

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.

Message: Re: Big boring changes incoming (PHP7)

Changed By: magma1447
Change Date: March 02, 2018 04: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 04: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]