diff options
author | Taufan Aditya <toopay@taufanaditya.com> | 2012-03-12 21:27:58 +0100 |
---|---|---|
committer | Taufan Aditya <toopay@taufanaditya.com> | 2012-03-12 21:27:58 +0100 |
commit | fc49a657af78b0fb248cc666b162dc894e3e04ba (patch) | |
tree | a8f59949dacfbc343b37fee442d5f11a14f6cb5a /system | |
parent | 311b230cf32dda94102866e56e8dd1ef81b5685b (diff) |
Extra
Diffstat (limited to 'system')
-rw-r--r-- | system/helpers/path_helper.php | 4 |
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) |