Hooks::onRecentChangeSave: Don't pass null to explode(), avoiding PHP 8.1 deprecation

Change-Id: Iaf2ad6b37c86e1555aaffe6dd08d9e511b319256
This commit is contained in:
Mark A. Hershberger 2022-05-01 11:42:04 -04:00 committed by Jforrester
parent 1f4eec1a10
commit 3022b0e4e6

View file

@ -671,7 +671,7 @@ class Hooks {
$rc->addTags( 'visualeditor-switched' );
}
$tags = explode( ',', $request->getVal( 'vetags' ) );
$tags = explode( ',', $request->getVal( 'vetags' ) ?? '' );
$tags = array_values( array_intersect( $tags, static::TAGS ) );
if ( $tags ) {
$rc->addTags( $tags );