From: Nick Jenkins Date: Wed, 29 Nov 2006 12:32:43 +0000 (+0000) Subject: $functionname not defined in this context, replacing with hardcoded "-setup" array... X-Git-Tag: 1.31.0-rc.0~55039 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=fac094666a9ba2c47fe6afd2c1506ae3937825d2;p=lhc%2Fweb%2Fwiklou.git $functionname not defined in this context, replacing with hardcoded "-setup" array key. --- 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;