Index: trunk/phase3/includes/Title.php |
— | — | @@ -3575,6 +3575,9 @@ |
3576 | 3576 | } |
3577 | 3577 | # Get the article text |
3578 | 3578 | $rev = Revision::newFromTitle( $nt ); |
| 3579 | + if( !is_object( $rev ) ){ |
| 3580 | + return false; |
| 3581 | + } |
3579 | 3582 | $text = $rev->getText(); |
3580 | 3583 | # Does the redirect point to the source? |
3581 | 3584 | # Or is it a broken self-redirect, usually caused by namespace collisions? |