r105454 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r105453‎ | r105454 | r105455 >
Date:19:40, 7 December 2011
Author:kaldari
Status:ok
Tags:
Comment:
make sure fudge factor is number (again) to be safe
Modified paths:
  • /trunk/extensions/ContributionReporting/ContributionReporting.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ContributionReporting/ContributionReporting.php
@@ -225,6 +225,11 @@
226226
227227 # Output
228228 $output = $row['ttl'] ? $row['ttl'] : '0';
 229+
 230+ // Make sure fudge factor is a number
 231+ if ( is_nan( $fudgeFactor ) ) {
 232+ $fudgeFactor = 0;
 233+ }
229234
230235 $output += $fudgeFactor;
231236

Follow-up revisions

RevisionCommit summaryAuthorDate
r105485MFT r105051, r105064, r105145, r105214, r105353, r105454awjrichards23:27, 7 December 2011
r106696MFT r105145, r105454, r105641, r105657, r105659, r105757, r105916, r105965, r...awjrichards20:59, 19 December 2011

Status & tagging log