Page 1 of 1

Bug in 'Additional files downloads'?

Posted: Thu Jan 18, 2018 12:06 pm
by Juan F. Ramirez
Just noticed that some game entries, like this:

https://spectrumcomputing.co.uk/index.php?cat=96&id=481

display the same files repeatedly twice, three or more times, it depends of the game: Six adverts, six inlays, ...

I don't think it's a browser issue. I'm using Chrome, and it happens both in Android and Windows versions.

Re: Bug in 'Additional files downloads'?

Posted: Thu Jan 18, 2018 12:19 pm
by R-Tape
Whoa! That's new. The guys were working on the site the last couple of evenings, must be a side effect of that.

Thanks for pointing it out.

Re: Bug in 'Additional files downloads'?

Posted: Thu Jan 18, 2018 1:30 pm
by PeterJ
Hi [mention]Juan F. Ramirez[/mention] . Thanks for reporting this. I have been making some changes to that section and I must have an issue with my SQL. I will fix over the weekend.

Peter

Re: Bug in 'Additional files downloads'?

Posted: Thu Jan 18, 2018 5:15 pm
by PeterJ
I had a flash of inspiration (It does not happen often) and fixed it quicker than planned. Thanks again for reporting it [mention]Juan F. Ramirez[/mention]

Re: Bug in 'Additional files downloads'?

Posted: Thu Jan 18, 2018 5:41 pm
by R-Tape
Nice one Peter. Was this the problem?

LET A=Beachheadinlay
FOR B=0 TO 3
PRINT A
NEXT B
STOP

Re: Bug in 'Additional files downloads'?

Posted: Thu Jan 18, 2018 5:49 pm
by Juan F. Ramirez
R-Tape wrote: Thu Jan 18, 2018 5:41 pm Nice one Peter. Was this the problem?

LET A=Beachheadinlay
FOR B=0 TO 3
PRINT A
NEXT B
STOP
That's what I suspected!

Re: Bug in 'Additional files downloads'?

Posted: Thu Jan 18, 2018 6:07 pm
by R-Tape
Indeed, in fact thinking about it Peter - you could drop the loop all together as we only need one iteration of 'PRINT Beachheadinlay'.

Hope that helps :D

Re: Bug in 'Additional files downloads'?

Posted: Fri Jan 19, 2018 9:30 am
by 4thRock
Actually, the PHP code is not that different :lol:

Re: Bug in 'Additional files downloads'?

Posted: Fri Jan 19, 2018 11:14 am
by Juan F. Ramirez
4thRock wrote: Fri Jan 19, 2018 9:30 am Actually, the PHP code is not that different :lol:
And here I thought the SC maintenance system was something like this:

Image

;) :lol: