Index: trunk/phase3/includes/SkinTemplate.php |
— | — | @@ -707,7 +707,7 @@ |
708 | 708 | ); |
709 | 709 | |
710 | 710 | // adds new section link if page is a current revision of a talk page or |
711 | | - if ( ( $wgArticle->isCurrent() && $istalk ) || $wgOut->showNewSectionLink() ) { |
| 711 | + if ( ( $wgArticle && $wgArticle->isCurrent() && $istalk ) || $wgOut->showNewSectionLink() ) { |
712 | 712 | if ( !$wgOut->forceHideNewSectionLink() ) { |
713 | 713 | $content_actions['addsection'] = array( |
714 | 714 | 'class' => $section == 'new' ? 'selected' : false, |