diff options
author | Derek Jones <derek.jones@ellislab.com> | 2009-07-15 17:56:58 +0200 |
---|---|---|
committer | Derek Jones <derek.jones@ellislab.com> | 2009-07-15 17:56:58 +0200 |
commit | 94026d914090861da9c2826508a4597badb86af6 (patch) | |
tree | ea00f5f6be68b5f29969d94a1ce140b146110fad /system/helpers | |
parent | a14ab128263c4fe107f0412f659e96843a63cf30 (diff) |
added return FALSE if directory_map() cannot read the directory
Diffstat (limited to 'system/helpers')
-rw-r--r-- | system/helpers/directory_helper.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/system/helpers/directory_helper.php b/system/helpers/directory_helper.php index b1c497686..a6fb7841e 100644 --- a/system/helpers/directory_helper.php +++ b/system/helpers/directory_helper.php @@ -72,6 +72,10 @@ if ( ! function_exists('directory_map')) closedir($fp); return $filedata; } + else + { + return FALSE; + } } } |