Gregwar / Image

A PHP library to handle images
MIT License
1k stars 191 forks source link

Error removing cache files #166

Open CarlosCosmo opened 4 years ago

CarlosCosmo commented 4 years ago

I've encountered a problem with GarbageCollect.php. When is trying to find around all folders inside given one, it only search in a few.

You should change the line 37 from this:

while ($file = readdir($dir)) {

to

while (false !== ($file = readdir($dir))) {

Regards! Have a nice day.