Extra
diff --git a/system/helpers/path_helper.php b/system/helpers/path_helper.php
index 8c4730d..e4fc6f1 100644
--- a/system/helpers/path_helper.php
+++ b/system/helpers/path_helper.php
@@ -58,13 +58,13 @@
}
// Resolve the path
- if (function_exists('realpath'))
+ if (function_exists('realpath') && @realpath($path) !== FALSE)
{
$realpath = realpath($path);
}
else
{
- $realpath = (is_dir($path) or is_file($path)) ? $path : FALSE;
+ $realpath = (is_dir($path) OR is_file($path)) ? $path : FALSE;
}
if ( ! $realpath)