From fac094666a9ba2c47fe6afd2c1506ae3937825d2 Mon Sep 17 00:00:00 2001 From: Nick Jenkins Date: Wed, 29 Nov 2006 12:32:43 +0000 Subject: [PATCH] $functionname not defined in this context, replacing with hardcoded "-setup" array key. --- includes/ProfilerSimple.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/ProfilerSimple.php b/includes/ProfilerSimple.php index eb2985ccae..e69bfc475b 100644 --- a/includes/ProfilerSimple.php +++ b/includes/ProfilerSimple.php @@ -25,7 +25,7 @@ class ProfilerSimple extends Profiler { $entry =& $this->mCollated["-setup"]; if (!is_array($entry)) { $entry = array('cpu'=> 0.0, 'cpu_sq' => 0.0, 'real' => 0.0, 'real_sq' => 0.0, 'count' => 0); - $this->mCollated[$functionname] =& $entry; + $this->mCollated["-setup"] =& $entry; } $entry['cpu'] += $elapsedcpu; -- 2.20.1