Index: trunk/phase3/includes/Article.php |
— | — | @@ -280,7 +280,7 @@ |
281 | 281 | |
282 | 282 | if ( $oldid ) { |
283 | 283 | $revision = Revision::newFromId( $oldid ); |
284 | | - if ( $revision === null ) { |
| 284 | + if ( !$revision ) { |
285 | 285 | wfDebug( __METHOD__ . " failed to retrieve specified revision, id $oldid\n" ); |
286 | 286 | return false; |
287 | 287 | } |
— | — | @@ -300,7 +300,7 @@ |
301 | 301 | } |
302 | 302 | |
303 | 303 | $revision = $this->mPage->getRevision(); |
304 | | - if ( $revision === null ) { |
| 304 | + if ( !$revision ) { |
305 | 305 | wfDebug( __METHOD__ . " failed to retrieve current page, rev_id " . $this->mPage->getLatest() . "\n" ); |
306 | 306 | return false; |
307 | 307 | } |
Index: trunk/phase3/includes/WikiPage.php |
— | — | @@ -471,14 +471,14 @@ |
472 | 472 | |
473 | 473 | /** |
474 | 474 | * Get the latest revision |
475 | | - * @return Revision|false |
| 475 | + * @return Revision|null |
476 | 476 | */ |
477 | 477 | public function getRevision() { |
478 | 478 | $this->loadLastEdit(); |
479 | 479 | if ( $this->mLastRevision ) { |
480 | 480 | return $this->mLastRevision; |
481 | 481 | } |
482 | | - return false; |
| 482 | + return null; |
483 | 483 | } |
484 | 484 | |
485 | 485 | /** |