r63983 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r63982‎ | r63983 | r63984 >
Date:20:27, 20 March 2010
Author:aaron
Status:ok
Tags:
Comment:
Fixed error notices when $row is false due to the query cache not yet storing data for namespaces recently made reviewable
Modified paths:
  • /trunk/extensions/FlaggedRevs/specialpages/ValidationStatistics_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/specialpages/ValidationStatistics_body.php
@@ -80,6 +80,8 @@
8181 foreach ( $namespaces as $namespace ) {
8282 $row = $this->db->selectRow( 'flaggedrevs_stats', '*',
8383 array( 'namespace' => $namespace ) );
 84+ if( !$row ) continue; // NS added to config recently?
 85+
8486 $NsText = $wgContLang->getFormattedNsText( $row->namespace );
8587 $NsText = $NsText ? $NsText : wfMsgHTML( 'blanknamespace' );
8688

Status & tagging log