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:
parent
24bbce386c
commit
490fc0fec3
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue