r52088 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r52087‎ | r52088 | r52089 >
Date:07:00, 18 June 2009
Author:aaron
Status:ok
Tags:
Comment:
division by zero check
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php
@@ -1574,7 +1574,7 @@
15751575 $unreviewed = $dbr->estimateRowCount( 'flaggedpages', '*',
15761576 'fp_pending_since IS NOT NULL', __METHOD__ );
15771577 }
1578 - if( ($unreviewed/$pages) > .02 ) {
 1578+ if( $pages > 0 && ($unreviewed/$pages) > .02 ) {
15791579 wfLoadExtensionMessages( 'FlaggedRevs' );
15801580 $notice .= "<div id='mw-oldreviewed-notice' class='plainlinks fr-backlognotice'>" .
15811581 wfMsgExt('flaggedrevs-backlog',array('parseinline')) . "</div>";

Follow-up revisions

RevisionCommit summaryAuthorDate
r53198Going ahead and making a deployment branch so we have some shared idea of wtf...brion22:17, 13 July 2009
r53201Going ahead and making a deployment branch so we have some shared idea of wtf...brion22:21, 13 July 2009

Status & tagging log