r91653 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r91652‎ | r91653 | r91654 >
Date:17:25, 7 July 2011
Author:ialex
Status:ok
Tags:
Comment:
Removed usage of error suppression operator
Modified paths:
  • /trunk/phase3/includes/profiler/Profiler.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/profiler/Profiler.php
@@ -356,7 +356,7 @@
357357 $prof = "\nProfiling data\n";
358358 $prof .= sprintf( $titleFormat, 'Name', 'Calls', 'Total', 'Each', '%', 'Mem' );
359359
360 - $total = @$this->mCollated['-total'];
 360+ $total = isset( $this->mCollated['-total'] ) ? $this->mCollated['-total'] : 0;
361361
362362 foreach( $this->mCollated as $fname => $elapsed ){
363363 $calls = $this->mCalls[$fname];

Status & tagging log