commit | de9ec100e05f698541422f34e72d9dfee044cc66 | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@devilix.net> | Mon Feb 24 17:16:32 2014 +0200 |
committer | Andrey Andreev <narf@devilix.net> | Mon Feb 24 17:16:32 2014 +0200 |
tree | f463165ba39ac6b67aab3d6a21e255b16867e39c | |
parent | dea61776dbb33f4414d5c5f17bbbc6a9efaa589c [diff] [blame] |
Fix #2901
diff --git a/system/core/Common.php b/system/core/Common.php index 24315a0..55f07a8 100644 --- a/system/core/Common.php +++ b/system/core/Common.php
@@ -183,9 +183,10 @@ // 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]; } }