From: Alexandre Emsenhuber Date: Sat, 30 Jul 2011 20:27:32 +0000 (+0000) Subject: Follow-up r93527: $value can also be null when not set X-Git-Tag: 1.31.0-rc.0~28527 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=e4e9a7d897bc1a16446809d0f5afb92dfed8d470;p=lhc%2Fweb%2Fwiklou.git Follow-up r93527: $value can also be null when not set --- diff --git a/includes/specials/SpecialComparePages.php b/includes/specials/SpecialComparePages.php index 5531a6dde2..81fd92f71b 100644 --- a/includes/specials/SpecialComparePages.php +++ b/includes/specials/SpecialComparePages.php @@ -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 );