Removed usage of error suppression operator
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 7 Jul 2011 17:25:35 +0000 (17:25 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 7 Jul 2011 17:25:35 +0000 (17:25 +0000)
includes/profiler/Profiler.php

index 78ea912..2b57096 100644 (file)
@@ -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];