summaryrefslogtreecommitdiffstats
path: root/system/core/Loader.php
diff options
context:
space:
mode:
authorAlex Bilbie <alex@alexbilbie.com>2012-06-02 17:04:15 +0200
committerAlex Bilbie <alex@alexbilbie.com>2012-06-02 17:04:15 +0200
commit40bd2a7fb2fb98a10c4e3758897a595ae78ab5f8 (patch)
treef250a5137789778a79d90e1694936d0ca64b6db3 /system/core/Loader.php
parent2be12da6a443e74fb3f5f64d12c4e0a7164503da (diff)
Don't assume $_ci_path is a string (could be FALSE)
Diffstat (limited to 'system/core/Loader.php')
-rw-r--r--system/core/Loader.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/core/Loader.php b/system/core/Loader.php
index adfe92845..66a9e7faa 100644
--- a/system/core/Loader.php
+++ b/system/core/Loader.php
@@ -775,7 +775,7 @@ class CI_Loader {
$file_exists = FALSE;
// Set the path to the requested file
- if ($_ci_path !== '')
+ if (is_string($_ci_path) && $_ci_path !== '')
{
$_ci_x = explode('/', $_ci_path);
$_ci_file = end($_ci_x);