X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2FpurgeChangedPages.php;h=4ce9474ffd2418ed493e80ac94a744b7f1773240;hb=6ab14151766918b9c7abf33580cdd64b9f9e79e4;hp=071ac09c7639ad59985f488a1cb6e476518c05de;hpb=5974804aee5bfc01ea6b49de8537df960035c0ce;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/purgeChangedPages.php b/maintenance/purgeChangedPages.php index 071ac09c76..4ce9474ffd 100644 --- a/maintenance/purgeChangedPages.php +++ b/maintenance/purgeChangedPages.php @@ -160,7 +160,7 @@ class PurgeChangedPages extends Maintenance { * If this returns an empty array for a non-empty query result, then all the rows * had the same column value and the query should be repeated with a higher LIMIT. * - * @TODO: move this elsewhere + * @todo move this elsewhere * * @param ResultWrapper $res Query result sorted by $column (ascending) * @param string $column @@ -183,6 +183,7 @@ class PurgeChangedPages extends Maintenance { } } $lastValueLeft = count( $rows ) ? $rows[count( $rows ) - 1]->$column : null; + return array( $rows, $lastValueLeft ); } }