Index: trunk/phase3/includes/Wiki.php |
— | — | @@ -351,13 +351,11 @@ |
352 | 352 | * @param $updates array of objects that hold an update to do |
353 | 353 | */ |
354 | 354 | function doUpdates( &$updates ) { |
355 | | - wfProfileIn( __METHOD__ ); |
356 | 355 | /* No need to get master connections in case of empty updates array */ |
357 | | - if (!$updates) { |
358 | | - wfProfileOut( __METHOD__ ); |
| 356 | + if( !$updates ) { |
359 | 357 | return; |
360 | 358 | } |
361 | | - |
| 359 | + wfProfileIn( __METHOD__ ); |
362 | 360 | $dbw = wfGetDB( DB_MASTER ); |
363 | 361 | foreach( $updates as $up ) { |
364 | 362 | $up->doUpdate(); |