summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
Diffstat (limited to 'system/libraries')
-rw-r--r--system/libraries/Controller.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/system/libraries/Controller.php b/system/libraries/Controller.php
index 06e54b2d1..768b154e8 100644
--- a/system/libraries/Controller.php
+++ b/system/libraries/Controller.php
@@ -128,7 +128,8 @@ class Controller extends CI_Base {
$name = $model;
}
- if (in_array($name, $this->_ci_models))
+ $obj =& get_instance();
+ if (in_array($name, $obj->_ci_models))
{
return;
}