Follow-up r93527: $value can also be null when not set

This commit is contained in:
Alexandre Emsenhuber 2011-07-30 20:27:32 +00:00
parent c8e9747d3e
commit e4e9a7d897

View file

@ -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 );