X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fstorage%2FmoveToExternal.php;h=0b95ba5e68e40ac409085936e96dc833f249ca32;hb=19fe64a134233613126cdbd8e4db7f24b693116d;hp=639ef5846fc4819319fdc244b430efde8017bc8b;hpb=e9ed100496b388a31ac2af0deabcc9754984d09d;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/storage/moveToExternal.php b/maintenance/storage/moveToExternal.php index 639ef5846f..0b95ba5e68 100644 --- a/maintenance/storage/moveToExternal.php +++ b/maintenance/storage/moveToExternal.php @@ -38,11 +38,7 @@ if ( !defined( 'MEDIAWIKI' ) ) { $cluster = $args[0]; $dbw = wfGetDB( DB_MASTER ); - if ( isset( $options['e'] ) ) { - $maxID = $options['e']; - } else { - $maxID = $dbw->selectField( 'text', 'MAX(old_id)', '', $fname ); - } + $maxID = $options['e'] ?? $dbw->selectField( 'text', 'MAX(old_id)', '', $fname ); $minID = $options['s'] ?? 1; moveToExternal( $cluster, $maxID, $minID );