summaryrefslogtreecommitdiffstats
path: root/system/libraries/Loader.php
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-10-25 01:16:17 +0200
committeradmin <devnull@localhost>2006-10-25 01:16:17 +0200
commit2bc13859b72ceb8400d37adbba52b8404995bf03 (patch)
treed8dbe120776f1564525adfef6bc1b30c5516a98f /system/libraries/Loader.php
parent25701d75807a3fc8707c8afdb5d43062acfcf88e (diff)
Diffstat (limited to 'system/libraries/Loader.php')
-rw-r--r--system/libraries/Loader.php5
1 files changed, 5 insertions, 0 deletions
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();