SpecialRevisionDelete: Set default of '' for wpReason

Prevents:

PHP Deprecated: htmlspecialchars(): Passing null to parameter #1 () of type string is deprecated

Bug: T289926
Change-Id: I29851ae8ccbc33f36bd40ac77b76bccb2b93605d
This commit is contained in:
Reedy 2023-01-31 01:52:44 +00:00
parent 24bbce386c
commit 490fc0fec3

View file

@ -223,7 +223,7 @@ class SpecialRevisionDelete extends UnlistedSpecialPage {
$pageIsSuppressed = $list->areAnySuppressed();
$this->mIsAllowed = $this->mIsAllowed && !( $canViewSuppressedOnly && $pageIsSuppressed );
$this->otherReason = $request->getVal( 'wpReason' );
$this->otherReason = $request->getVal( 'wpReason', '' );
# Give a link to the logs/hist for this page
$this->showConvenienceLinks();