Commits

Anonymous committed b5bf3e9

Comments (0)

Files changed (1)

system/libraries/Controller.php

 		{
 			$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);