SpecialAbuseLog: Don't call explode() on null

Bug: T311579
Change-Id: I2481beb2344a57242795a722e255e119ea29ac18
This commit is contained in:
Reedy 2022-06-29 01:14:07 +01:00
parent 2314785568
commit 60cb198e81

View file

@ -212,7 +212,7 @@ class SpecialAbuseLog extends AbuseFilterSpecialPage {
$this->checkPermissions();
$args = explode( '/', $parameter );
$args = $parameter !== null ? explode( '/', $parameter ) : [];
if ( count( $args ) === 2 && $args[0] === 'private' ) {
$this->showPrivateDetails( (int)$args[1] );