summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
Diffstat (limited to 'system/libraries')
-rw-r--r--system/libraries/Controller.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/system/libraries/Controller.php b/system/libraries/Controller.php
index ec21f8d66..06e54b2d1 100644
--- a/system/libraries/Controller.php
+++ b/system/libraries/Controller.php
@@ -127,7 +127,12 @@ class Controller extends CI_Base {
{
$name = $model;
}
-
+
+ if (in_array($name, $this->_ci_models))
+ {
+ return;
+ }
+
if (isset($this->$name))
{
show_error('The model name you are loading is the name of a resource that is already being used: '.$name);