From: Tim Starling Date: Fri, 19 Jun 2009 03:27:04 +0000 (+0000) Subject: Fix fatal error. Logged on WM but exact cause uncertain. X-Git-Tag: 1.31.0-rc.0~41295 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22articles%22%2C%22id_article=%24id_article%22%29%20.%20%22?a=commitdiff_plain;h=732808d361579c5e3adf29e07a87b31f60d39948;p=lhc%2Fweb%2Fwiklou.git Fix fatal error. Logged on WM but exact cause uncertain. --- diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index 6c5dd537f5..1631cfdeb8 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -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,