From a0fa90b1bbb61d47bcc9bc95d983e66dfc8732dd Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Tue, 1 Jan 2008 15:59:47 +0000 Subject: Fixed a bug in get_filenames() in the File Helper where the array wasn't cleared after each call. --- system/helpers/file_helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/helpers') 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)) { -- cgit v1.2.3-24-g4f1b