diff options
author | admin <devnull@localhost> | 2006-10-23 22:49:27 +0200 |
---|---|---|
committer | admin <devnull@localhost> | 2006-10-23 22:49:27 +0200 |
commit | c1e23ce329575d2777dc1c87b87c4b1171c4e18b (patch) | |
tree | fe5fd5137350edb2914d8645dd07219d3c38f7cd /system/helpers/directory_helper.php | |
parent | e85c05d6999e07b19d4691b81e0680c4e56973a8 (diff) |
Diffstat (limited to 'system/helpers/directory_helper.php')
-rw-r--r-- | system/helpers/directory_helper.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/system/helpers/directory_helper.php b/system/helpers/directory_helper.php index e6ed47fd8..ad868519d 100644 --- a/system/helpers/directory_helper.php +++ b/system/helpers/directory_helper.php @@ -40,12 +40,10 @@ * @return array */ function directory_map($source_dir, $top_level_only = FALSE) -{ - if ( ! isset($filedata)) - $filedata = array(); - +{ if ($fp = @opendir($source_dir)) { + $filedata = array(); while (FALSE !== ($file = readdir($fp))) { if (@is_dir($source_dir.$file) && substr($file, 0, 1) != '.' AND $top_level_only == FALSE) |