r100574 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r100573‎ | r100574 | r100575 >
Date:02:28, 24 October 2011
Author:aaron
Status:ok
Tags:
Comment:
MFT r100573 - 'Added quotes to $blockStart/$blockEnd'
Modified paths:
  • /branches/wmf/1.18wmf1/extensions/CheckUser/maintenance/purgeOldData.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.18wmf1/extensions/CheckUser/maintenance/purgeOldData.php
@@ -46,9 +46,9 @@
4747 break; // all cleared
4848 }
4949 // Record the start and end timestamp for the set
50 - $blockStart = $res->fetchObject()->$ts_column;
 50+ $blockStart = $dbw->addQuotes( $res->fetchObject()->$ts_column );
5151 $res->seek( $res->numRows() - 1 );
52 - $blockEnd = $res->fetchObject()->$ts_column;
 52+ $blockEnd = $dbw->addQuotes( $res->fetchObject()->$ts_column );
5353 $res->free();
5454
5555 // Do the actual delete...

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r100573Added quotes to $blockStart/$blockEndaaron02:26, 24 October 2011

Status & tagging log