Don't use error suppression on is_dir(), file_exists()
diff --git a/system/helpers/directory_helper.php b/system/helpers/directory_helper.php
index 84ad358..0bbe7fe 100644
--- a/system/helpers/directory_helper.php
+++ b/system/helpers/directory_helper.php
@@ -69,9 +69,9 @@
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);
}