summaryrefslogtreecommitdiffstats
path: root/system/helpers
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2008-01-01 16:59:47 +0100
committerDerek Allard <derek.allard@ellislab.com>2008-01-01 16:59:47 +0100
commita0fa90b1bbb61d47bcc9bc95d983e66dfc8732dd (patch)
treeb862a295adcd6a1ea1d6a116fcb9979bb233eeba /system/helpers
parent848b77685de0346da3f9fb8614e59f7d11552e61 (diff)
Fixed a bug in get_filenames() in the File Helper where the array wasn't cleared after each call.
Diffstat (limited to 'system/helpers')
-rw-r--r--system/helpers/file_helper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/helpers/file_helper.php b/system/helpers/file_helper.php
index 18798fdf4..d07d35f97 100644
--- a/system/helpers/file_helper.php
+++ b/system/helpers/file_helper.php
@@ -156,7 +156,7 @@ function delete_files($path, $del_dir = FALSE, $level = 0)
*/
function get_filenames($source_dir, $include_path = FALSE)
{
- static $_filedata = array();
+ $_filedata = array();
if ($fp = @opendir($source_dir))
{