From 96f02ac694f75c01afd79b40cd1648d4f9624f96 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sat, 17 Jan 2004 11:31:48 +0000 Subject: [PATCH] Got rid of some notices --- includes/Profiling.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/includes/Profiling.php b/includes/Profiling.php index 1bdf3fb457..6d97f97749 100755 --- a/includes/Profiling.php +++ b/includes/Profiling.php @@ -108,6 +108,12 @@ class Profiler $end = explode( " ", $entry[3]); $end = (float)$end[0] + (float)$end[1]; $elapsed = $end - $start; + + if ( !array_key_exists( $fname, $this->mCollated ) ) { + $this->mCollated[$fname] = 0; + $this->mCalls[$fname] = 0; + } + $this->mCollated[$fname] += $elapsed; $this->mCalls[$fname] ++; } -- 2.20.1