Permalink
Browse files

Fixed config array testing in Loader

  • Loading branch information...
1 parent c151b3d commit c490f067cb677e970aee4f001c5c073611af31bc @dchill42 committed Sep 6, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 system/core/Loader.php
View
@@ -1234,14 +1234,14 @@ protected function _ci_init_class($class, $prefix = '', $config = FALSE, $object
// See if there's a config file for the class
$file = strtolower($class);
$data = $this->CI->config->get($file.'.php', 'config');
- if ($data === FALSE)
+ if (!is_array($data))
{
// Try uppercase
$data = $this->CI->config->get(ucfirst($file).'.php', 'config');
}
// Set config if found
- if ($data !== FALSE)
+ if (is_array($data))
{
$config = $data;
}

0 comments on commit c490f06

Please sign in to comment.