From de9ec100e05f698541422f34e72d9dfee044cc66 Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Mon, 24 Feb 2014 17:16:32 +0200 Subject: Fix #2901 --- system/core/Common.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'system') 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]; } } -- cgit v1.2.3-24-g4f1b