Index: trunk/extensions/CheckUser/maintenance/purgeOldData.php |
— | — | @@ -46,9 +46,9 @@ |
47 | 47 | break; // all cleared |
48 | 48 | } |
49 | 49 | // Record the start and end timestamp for the set |
50 | | - $blockStart = $res->fetchObject()->$ts_column; |
| 50 | + $blockStart = $dbw->addQuotes( $res->fetchObject()->$ts_column ); |
51 | 51 | $res->seek( $res->numRows() - 1 ); |
52 | | - $blockEnd = $res->fetchObject()->$ts_column; |
| 52 | + $blockEnd = $dbw->addQuotes( $res->fetchObject()->$ts_column ); |
53 | 53 | $res->free(); |
54 | 54 | |
55 | 55 | // Do the actual delete... |