Index: trunk/extensions/ProofreadPage/ProofreadPage_body.php |
— | — | @@ -877,11 +877,13 @@ |
878 | 878 | $firstpage = $links[1][0]; |
879 | 879 | } |
880 | 880 | $firstpage_title = Title::newFromText( "$page_namespace:$firstpage" ); |
881 | | - $parser->getOutput()->addTemplate( |
882 | | - $firstpage_title, |
883 | | - $firstpage_title->getArticleID(), |
884 | | - $firstpage_title->getLatestRevID() |
885 | | - ); |
| 881 | + if ( $firstpage_title ) { |
| 882 | + $parser->getOutput()->addTemplate( |
| 883 | + $firstpage_title, |
| 884 | + $firstpage_title->getArticleID(), |
| 885 | + $firstpage_title->getLatestRevID() |
| 886 | + ); |
| 887 | + } |
886 | 888 | } |
887 | 889 | |
888 | 890 | if( $header ) { |