summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-02-24 16:16:32 +0100
committerAndrey Andreev <narf@devilix.net>2014-02-24 16:16:32 +0100
commitde9ec100e05f698541422f34e72d9dfee044cc66 (patch)
treef463165ba39ac6b67aab3d6a21e255b16867e39c /system
parentdea61776dbb33f4414d5c5f17bbbc6a9efaa589c (diff)
Fix #2901
Diffstat (limited to 'system')
-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];
}
}