View Single Post
Old 10-11-2008, 03:16 PM   #5 (permalink)
ReSpawN
The Frequenter
 
ReSpawN's Avatar
 
Join Date: Nov 2007
Location: Netherlands
Posts: 460
Thanks: 49
ReSpawN is on a distinguished road
Default

The more simple approach is, to just define it as an array.
PHP Code:
$dirs = array(); 
Then, there is no need to check it because with the glob, you're just going to pump it full of data.

If you're getting the same error, just try the regular foreach like so.
PHP Code:
foreach ( (array)$dirs as $key => $value ) { ... } 
__________________
"Life is a bitch, take that bitch on a ride"
Send a message via MSN to ReSpawN
ReSpawN is offline  
Reply With Quote