summaryrefslogtreecommitdiffstats
path: root/system/helpers/directory_helper.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-02-26 17:41:59 +0100
committerAndrey Andreev <narf@devilix.net>2014-02-26 17:41:59 +0100
commit382b51383c84fbb7f861fcd87b0b71b35c9f2869 (patch)
tree9aa8bf35189e3a7f4a8a6923bafba758d15aa90b /system/helpers/directory_helper.php
parentea41c8aa1951216b6a9ccc99832d69d2b41c5ead (diff)
Don't use error suppression on is_dir(), file_exists()
Diffstat (limited to 'system/helpers/directory_helper.php')
-rw-r--r--system/helpers/directory_helper.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/helpers/directory_helper.php b/system/helpers/directory_helper.php
index 84ad35894..0bbe7fe97 100644
--- a/system/helpers/directory_helper.php
+++ b/system/helpers/directory_helper.php
@@ -69,9 +69,9 @@ if ( ! function_exists('directory_map'))
continue;
}
- @is_dir($source_dir.$file) && $file .= DIRECTORY_SEPARATOR;
+ is_dir($source_dir.$file) && $file .= DIRECTORY_SEPARATOR;
- if (($directory_depth < 1 OR $new_depth > 0) && @is_dir($source_dir.$file))
+ if (($directory_depth < 1 OR $new_depth > 0) && is_dir($source_dir.$file))
{
$filedata[$file] = directory_map($source_dir.$file, $new_depth, $hidden);
}