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 +- user_guide/changelog.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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)) { diff --git a/user_guide/changelog.html b/user_guide/changelog.html index 3c234654c..b28ec8c46 100644 --- a/user_guide/changelog.html +++ b/user_guide/changelog.html @@ -100,6 +100,7 @@ Change Log
  • Fixed a bug in the cookie helper "set_cookie" function. It was not honoring the config settings.
  • Fixed a bug that was making validation callbacks required even when not set as such.
  • Fixed a bug in _object_to_array that broke some types of inserts and updates.
  • +
  • Fixed a bug in get_filenames() in the File Helper where the array wasn't cleared after each call.
  • Fixed an example of comma-separated emails in the email library documentation.
  • Fixed an example in the Calendar library for Showing Next/Previous Month Links.
  • Fixed a typo in the database language file.
  • -- cgit v1.2.3-24-g4f1b