From 890f361a3c1be626f1c4c0aea72f21bc8d4f0fd7 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Thu, 7 Jul 2011 17:25:35 +0000 Subject: [PATCH] Removed usage of error suppression operator --- includes/profiler/Profiler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; -- 2.20.1