From: Alexandre Emsenhuber Date: Thu, 7 Jul 2011 17:25:35 +0000 (+0000) Subject: Removed usage of error suppression operator X-Git-Tag: 1.31.0-rc.0~29011 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=890f361a3c1be626f1c4c0aea72f21bc8d4f0fd7;p=lhc%2Fweb%2Fwiklou.git Removed usage of error suppression operator --- diff --git a/includes/profiler/Profiler.php b/includes/profiler/Profiler.php index 78ea912964..2b5709653a 100644 --- a/includes/profiler/Profiler.php +++ b/includes/profiler/Profiler.php @@ -356,7 +356,7 @@ class Profiler { $prof = "\nProfiling data\n"; $prof .= sprintf( $titleFormat, 'Name', 'Calls', 'Total', 'Each', '%', 'Mem' ); - $total = @$this->mCollated['-total']; + $total = isset( $this->mCollated['-total'] ) ? $this->mCollated['-total'] : 0; foreach( $this->mCollated as $fname => $elapsed ){ $calls = $this->mCalls[$fname];