From 61f1aa0c4d22e1ab5a10e906f25d7e4ee24b225c Mon Sep 17 00:00:00 2001 From: vlakoff Date: Wed, 7 Aug 2013 11:29:17 +0200 Subject: Fix noneffective static variable cache in log_message() --- system/core/Common.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'system/core/Common.php') diff --git a/system/core/Common.php b/system/core/Common.php index 28c60832c..98a3fcb35 100644 --- a/system/core/Common.php +++ b/system/core/Common.php @@ -453,10 +453,11 @@ if ( ! function_exists('log_message')) if ($_log === NULL) { - $_log =& load_class('Log', 'core'); + // references cannot be directly assigned to static variables, so we use an array + $_log[0] =& load_class('Log', 'core'); } - $_log->write_log($level, $message, $php_error); + $_log[0]->write_log($level, $message, $php_error); } } -- cgit v1.2.3-24-g4f1b