summaryrefslogtreecommitdiffstats
path: root/system/helpers/directory_helper.php
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2009-07-15 17:56:58 +0200
committerDerek Jones <derek.jones@ellislab.com>2009-07-15 17:56:58 +0200
commit94026d914090861da9c2826508a4597badb86af6 (patch)
treeea00f5f6be68b5f29969d94a1ce140b146110fad /system/helpers/directory_helper.php
parenta14ab128263c4fe107f0412f659e96843a63cf30 (diff)
added return FALSE if directory_map() cannot read the directory
Diffstat (limited to 'system/helpers/directory_helper.php')
-rw-r--r--system/helpers/directory_helper.php4
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;
+ }
}
}