X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fstorage%2FcheckStorage.php;h=a95789d3661304226f789cc41d7d6d1300275087;hb=06c0d12441ed26a71c833e8b1e079ce8d8d08f63;hp=0ec24aff14f06714e34d5e49f6960d53423794ac;hpb=925c20a9ca669c67cc44f4468d0e0f3b33b94213;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/storage/checkStorage.php b/maintenance/storage/checkStorage.php index 0ec24aff14..a95789d366 100644 --- a/maintenance/storage/checkStorage.php +++ b/maintenance/storage/checkStorage.php @@ -29,11 +29,7 @@ if ( !defined( 'MEDIAWIKI' ) ) { $cs = new CheckStorage; $fix = isset( $options['fix'] ); - if ( isset( $args[0] ) ) { - $xml = $args[0]; - } else { - $xml = false; - } + $xml = $args[0] ?? false; $cs->check( $fix, $xml ); } @@ -266,12 +262,12 @@ class CheckStorage { case 'historyblobcurstub': if ( strlen( $row->header ) == $headerLength ) { $this->addError( 'unfixable', "Error: overlong stub header", $oldId ); - continue; + break; } $stubObj = unserialize( $row->header ); if ( !is_object( $stubObj ) ) { $this->addError( 'restore text', "Error: unable to unserialize stub object", $oldId ); - continue; + break; } if ( $className == 'historyblobstub' ) { $concatBlobs[$stubObj->mOldId][] = $oldId;