summaryrefslogtreecommitdiffstats
path: root/system/helpers/directory_helper.php
diff options
context:
space:
mode:
authorvlakoff <vlakoff@gmail.com>2012-09-13 05:19:59 +0200
committervlakoff <vlakoff@gmail.com>2012-09-13 05:19:59 +0200
commit8280885499ca4b1cffacc9ad78a9eff07a84de25 (patch)
tree4fe5c64156f6ab19468a9f1fa9e3713737866ff7 /system/helpers/directory_helper.php
parent88e3857ec2328e1dc4168c8343367d9d9e54d019 (diff)
directory_map() was skipping files and directories named "0"
Close #1757. Thanks @BennyC!
Diffstat (limited to 'system/helpers/directory_helper.php')
-rw-r--r--system/helpers/directory_helper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/helpers/directory_helper.php b/system/helpers/directory_helper.php
index e7d3b5e8a..7d6b6770e 100644
--- a/system/helpers/directory_helper.php
+++ b/system/helpers/directory_helper.php
@@ -62,7 +62,7 @@ if ( ! function_exists('directory_map'))
while (FALSE !== ($file = readdir($fp)))
{
// Remove '.', '..', and hidden files [optional]
- if ( ! trim($file, '.') OR ($hidden === FALSE && $file[0] === '.'))
+ if ($file === '.' OR $file === '..' OR ($hidden === FALSE && $file[0] === '.'))
{
continue;
}