From 60cb198e811fe08b7ce692991858814c03a3a94b Mon Sep 17 00:00:00 2001 From: Reedy Date: Wed, 29 Jun 2022 01:14:07 +0100 Subject: [PATCH] SpecialAbuseLog: Don't call explode() on null Bug: T311579 Change-Id: I2481beb2344a57242795a722e255e119ea29ac18 --- includes/Special/SpecialAbuseLog.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Special/SpecialAbuseLog.php b/includes/Special/SpecialAbuseLog.php index 4731e07bd..5583e0b32 100644 --- a/includes/Special/SpecialAbuseLog.php +++ b/includes/Special/SpecialAbuseLog.php @@ -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] );