From: Tim Starling Date: Sat, 17 Jan 2004 11:31:48 +0000 (+0000) Subject: Got rid of some notices X-Git-Tag: 1.3.0beta1~1153 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=96f02ac694f75c01afd79b40cd1648d4f9624f96;p=lhc%2Fweb%2Fwiklou.git Got rid of some notices --- 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] ++; }