commit | 40bd2a7fb2fb98a10c4e3758897a595ae78ab5f8 | [log] [tgz] |
---|---|---|
author | Alex Bilbie <alex@alexbilbie.com> | Sat Jun 02 16:04:15 2012 +0100 |
committer | Alex Bilbie <alex@alexbilbie.com> | Sat Jun 02 16:04:15 2012 +0100 |
tree | f250a5137789778a79d90e1694936d0ca64b6db3 | |
parent | 2be12da6a443e74fb3f5f64d12c4e0a7164503da [diff] [blame] |
Don't assume $_ci_path is a string (could be FALSE)
diff --git a/system/core/Loader.php b/system/core/Loader.php index adfe928..66a9e7f 100644 --- a/system/core/Loader.php +++ b/system/core/Loader.php
@@ -775,7 +775,7 @@ $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);