X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fstorage%2FfixT22757.php;h=61f1177899212aba618253ad15400c13a0da56e0;hb=738ed7d53f4481cf137520d84d8e5498b98cd33a;hp=da3ada7fa18e485f377c426366ccffef2e51c6cc;hpb=3c198b9dc85654bddf4bf7ad8875339151bc15c1;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/storage/fixT22757.php b/maintenance/storage/fixT22757.php index da3ada7fa1..61f1177899 100644 --- a/maintenance/storage/fixT22757.php +++ b/maintenance/storage/fixT22757.php @@ -55,7 +55,7 @@ class FixT22757 extends Maintenance { $numFixed = 0; $numBad = 0; - $totalRevs = $dbr->selectField( 'text', 'MAX(old_id)', false, __METHOD__ ); + $totalRevs = $dbr->selectField( 'text', 'MAX(old_id)', '', __METHOD__ ); // In MySQL 4.1+, the binary field old_text has a non-working LOWER() function $lowerLeft = 'LOWER(CONVERT(LEFT(old_text,22) USING latin1))'; @@ -255,11 +255,7 @@ class FixT22757 extends Maintenance { function findTextIdInPage( $pageId, $textId ) { $ids = $this->getRevTextMap( $pageId ); - if ( !isset( $ids[$textId] ) ) { - return null; - } else { - return $ids[$textId]; - } + return $ids[$textId] ?? null; } function getRevTextMap( $pageId ) {