akirafreak / phppi

Automatically exported from code.google.com/p/phppi
GNU General Public License v3.0
0 stars 0 forks source link

Invalid argument for foreach() #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Directory contains 638 png files. The index.php file has not been modified.  
When index.php is called, an error message is output.  Specifically:

Warning: Invalid argument supplied for foreach() in /html/vel/logos/index.php 
on line 814

What is the expected output? What do you see instead?
No error.

What version of the product are you using? On what operating system?
Version 0.9.2
Linux/Apache
PHP version 5.2.14

Please provide any additional information below.

Original issue reported on code.google.com by sh...@efundia.com on 17 Dec 2010 at 8:54

GoogleCodeExporter commented 9 years ago
Thanks for the report, i'll have a look and see if I can reproduce.

Original comment by gorounreal on 17 Dec 2010 at 10:46

GoogleCodeExporter commented 9 years ago
I've check and I was unable to reproduce, however I do believe i've found what 
has caused the issue. It possibly occurs when no folders are found, there 
wasn't a check for that. I've now added a check for whether there are files or 
folders before displaying any items.

Version 0.9.3 has been added to the download section, if you could try that and 
respond here if it has been fixed that would be great.

Original comment by gorounreal on 17 Dec 2010 at 11:15

GoogleCodeExporter commented 9 years ago
Thanks.  That fixes this issue for me.  Very much appreciated!

Original comment by sh...@efundia.com on 18 Dec 2010 at 2:42

GoogleCodeExporter commented 9 years ago
Great to hear, thanks again for reporting the issue =)

Original comment by gorounreal on 18 Dec 2010 at 2:52