From b4473d4407311cc5e4b2306cf5fa51221d5826f8 Mon Sep 17 00:00:00 2001 From: admin Date: Sun, 27 Aug 2006 15:46:31 +0000 Subject: --- system/libraries/Controller.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'system') 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); -- cgit v1.2.3-24-g4f1b