Index: trunk/phase3/includes/specials/SpecialComparePages.php |
— | — | @@ -130,7 +130,7 @@ |
131 | 131 | } |
132 | 132 | |
133 | 133 | public function checkExistingTitle( $value, $alldata ) { |
134 | | - if ( $value === '' ) { |
| 134 | + if ( $value === '' || $value === null ) { |
135 | 135 | return true; |
136 | 136 | } |
137 | 137 | $title = Title::newFromText( $value ); |
— | — | @@ -144,7 +144,7 @@ |
145 | 145 | } |
146 | 146 | |
147 | 147 | public function checkExistingRevision( $value, $alldata ) { |
148 | | - if ( $value === '' ) { |
| 148 | + if ( $value === '' || $value === null ) { |
149 | 149 | return true; |
150 | 150 | } |
151 | 151 | $revision = Revision::newFromId( $value ); |