From a76cc44a607ed47fa8a12222c989dbd8cad6a212 Mon Sep 17 00:00:00 2001 From: Reedy Date: Wed, 23 Oct 2024 15:15:39 +0000 Subject: [PATCH] SpecialNotificationsMarkRead: Don't pass null to explode() Bug: T377920 Change-Id: I426c76dbf2e8da4563e93fefe6bd628faa0e13b7 --- includes/Special/SpecialNotificationsMarkRead.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Special/SpecialNotificationsMarkRead.php b/includes/Special/SpecialNotificationsMarkRead.php index 80accfd6e..8932dd1a4 100644 --- a/includes/Special/SpecialNotificationsMarkRead.php +++ b/includes/Special/SpecialNotificationsMarkRead.php @@ -54,7 +54,7 @@ class SpecialNotificationsMarkRead extends FormSpecialPage { 'default' => $this->par, 'filter-callback' => static function ( $value, $alldata ) { // Allow for a single value or a set of values - return explode( ',', $value ); + return explode( ',', $value ?? '' ); }, 'validation-callback' => function ( $value, $alldata ) { if ( $value === [ 'ALL' ] ) {