From 2bc13859b72ceb8400d37adbba52b8404995bf03 Mon Sep 17 00:00:00 2001 From: admin Date: Tue, 24 Oct 2006 23:16:17 +0000 Subject: --- system/libraries/Loader.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'system/libraries/Loader.php') diff --git a/system/libraries/Loader.php b/system/libraries/Loader.php index 7c42123f5..f243a2879 100644 --- a/system/libraries/Loader.php +++ b/system/libraries/Loader.php @@ -837,6 +837,11 @@ class CI_Loader { */ function _ci_assign_to_models() { + if (count($this->_ci_models) == 0) + { + return; + } + if ($this->_ci_is_instance()) { $CI =& get_instance(); -- cgit v1.2.3-24-g4f1b