Closed ghost closed 11 years ago
:+1:
According to PHP.net it returns "an empty array if no file matched or FALSE on error." Wouldn't it be better just to ensure that the result is an array, if not, return, otherwise run the loop.
When this request will be merged, because pull it on every devs comp doesn't have any pleasure)
I'm not sure why so many checks are required. Care to fill me in?
removed the unnecessary checks. can you pull it ?
Thanks!
Check if result of glob is array / not-empty / not === false