summaryrefslogtreecommitdiffstats
path: root/system/core
diff options
context:
space:
mode:
Diffstat (limited to 'system/core')
-rw-r--r--system/core/Common.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/system/core/Common.php b/system/core/Common.php
index 24315a054..55f07a871 100644
--- a/system/core/Common.php
+++ b/system/core/Common.php
@@ -183,9 +183,10 @@ if ( ! function_exists('load_class'))
// Keep track of what we just loaded
is_loaded($class);
- return $_classes[$class] = isset($param)
+ $_classes[$class] = isset($param)
? new $name($param)
: new $name();
+ return $_classes[$class];
}
}