Fix fatal error. Logged on WM but exact cause uncertain.
authorTim Starling <tstarling@users.mediawiki.org>
Fri, 19 Jun 2009 03:27:04 +0000 (03:27 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Fri, 19 Jun 2009 03:27:04 +0000 (03:27 +0000)
includes/SkinTemplate.php

index 6c5dd53..1631cfd 100644 (file)
@@ -707,7 +707,7 @@ class SkinTemplate extends Skin {
                                );
 
                                // adds new section link if page is a current revision of a talk page or 
-                               if ( ( $wgArticle->isCurrent() && $istalk ) || $wgOut->showNewSectionLink() ) {
+                               if ( ( $wgArticle && $wgArticle->isCurrent() && $istalk ) || $wgOut->showNewSectionLink() ) {
                                        if ( !$wgOut->forceHideNewSectionLink() ) {
                                                $content_actions['addsection'] = array(
                                                        'class' => $section == 'new' ? 'selected' : false,