summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTaufan Aditya <toopay@taufanaditya.com>2012-03-12 21:27:58 +0100
committerTaufan Aditya <toopay@taufanaditya.com>2012-03-12 21:27:58 +0100
commitfc49a657af78b0fb248cc666b162dc894e3e04ba (patch)
treea8f59949dacfbc343b37fee442d5f11a14f6cb5a
parent311b230cf32dda94102866e56e8dd1ef81b5685b (diff)
Extra
-rw-r--r--system/helpers/path_helper.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/helpers/path_helper.php b/system/helpers/path_helper.php
index 8c4730d73..e4fc6f157 100644
--- a/system/helpers/path_helper.php
+++ b/system/helpers/path_helper.php
@@ -58,13 +58,13 @@ if ( ! function_exists('set_realpath'))
}
// 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)