summaryrefslogtreecommitdiffstats
path: root/system/core/Common.php
diff options
context:
space:
mode:
authorvlakoff <vlakoff@gmail.com>2013-08-07 11:29:17 +0200
committervlakoff <vlakoff@gmail.com>2013-08-07 11:29:17 +0200
commit61f1aa0c4d22e1ab5a10e906f25d7e4ee24b225c (patch)
tree6df472199fa298660b09736890dec103749fcb44 /system/core/Common.php
parent5a215b6064c9ce7ee33db9a76bcb1a62bea16ec3 (diff)
Fix noneffective static variable cache in log_message()
Diffstat (limited to 'system/core/Common.php')
-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);
}
}