SpecialNotificationsMarkRead: Don't pass null to explode()

Bug: T377920
Change-Id: I426c76dbf2e8da4563e93fefe6bd628faa0e13b7
This commit is contained in:
Reedy 2024-10-23 15:15:39 +00:00
parent 7ff17f90ee
commit a76cc44a60

View file

@ -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' ] ) {