From fd971781c4f4d1b436cc7b9efd2e409b7b400b88 Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Wed, 20 Feb 2008 18:39:18 +0000 Subject: modified get_filenames() to return FALSE if the directory cannot be read --- system/helpers/file_helper.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'system') diff --git a/system/helpers/file_helper.php b/system/helpers/file_helper.php index ef07de76c..0005c2a24 100644 --- a/system/helpers/file_helper.php +++ b/system/helpers/file_helper.php @@ -184,6 +184,10 @@ if (! function_exists('get_filenames')) } return $_filedata; } + else + { + return $FALSE; + } } } -- cgit v1.2.3-24-g4f1b