summaryrefslogtreecommitdiffstats
path: root/system/helpers/directory_helper.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-09-14 10:40:43 +0200
committerAndrey Andreev <narf@bofh.bg>2012-09-14 10:40:43 +0200
commitcd0b93be53c9c4e8d4c993a3ee230f8b0fa84c65 (patch)
treeacf12caef85efb9ca6152702d80b294a0d254a79 /system/helpers/directory_helper.php
parenta82e6a6675dc0763f10541641c87caf416aa8add (diff)
parent8280885499ca4b1cffacc9ad78a9eff07a84de25 (diff)
Merge pull request #1794 from vlakoff/develop-2
directory_map() was skipping files and directories named "0"
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;
}