X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FpopulateArchiveRevId.php;h=84b962af3719ae49b4fafa6781a65b712e4abd58;hb=e65f8ac5110804067366f9f239c13f4f29b66c3d;hp=c85e194eeff18b5d2e4e330edf7387a197caabe1;hpb=20d290b883bc79c975a852670a6ed10d8406896e;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/populateArchiveRevId.php b/maintenance/populateArchiveRevId.php index c85e194eef..84b962af37 100644 --- a/maintenance/populateArchiveRevId.php +++ b/maintenance/populateArchiveRevId.php @@ -122,7 +122,7 @@ class PopulateArchiveRevId extends LoggedUpdateMaintenance { $dbw->doAtomicSection( __METHOD__, function ( IDatabase $dbw, $fname ) { $dbw->insert( 'revision', self::$dummyRev, $fname ); $id = $dbw->insertId(); - $toDelete[] = $id; + $toDelete = [ $id ]; $maxId = max( (int)$dbw->selectField( 'archive', 'MAX(ar_rev_id)', [], $fname ),