Follow-up r93527: $value can also be null when not set
This commit is contained in:
parent
c8e9747d3e
commit
e4e9a7d897
1 changed files with 2 additions and 2 deletions
|
|
@ -130,7 +130,7 @@ class SpecialComparePages extends SpecialPage {
|
|||
}
|
||||
|
||||
public function checkExistingTitle( $value, $alldata ) {
|
||||
if ( $value === '' ) {
|
||||
if ( $value === '' || $value === null ) {
|
||||
return true;
|
||||
}
|
||||
$title = Title::newFromText( $value );
|
||||
|
|
@ -144,7 +144,7 @@ class SpecialComparePages extends SpecialPage {
|
|||
}
|
||||
|
||||
public function checkExistingRevision( $value, $alldata ) {
|
||||
if ( $value === '' ) {
|
||||
if ( $value === '' || $value === null ) {
|
||||
return true;
|
||||
}
|
||||
$revision = Revision::newFromId( $value );
|
||||
|
|
|
|||
Loading…
Reference in a new issue