summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2013-08-07 14:50:44 +0200
committerAndrey Andreev <narf@devilix.net>2013-08-07 14:50:44 +0200
commitc49d181403f9d6a2cc8ad2d24d5c9d145b53c005 (patch)
tree7da7abf7b88e3c1b17d3879286d9e791a0fbe2e3
parent2b956af4588eb64a7a4f9c72e1d223a33b65e8c6 (diff)
parent61f1aa0c4d22e1ab5a10e906f25d7e4ee24b225c (diff)
Merge pull request #2590 from vlakoff/develop
Fix noneffective static variable cache in log_message()
-rw-r--r--system/core/Common.php5
1 files changed, 3 insertions, 2 deletions
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);
}
}