From: Zheng Zhu Date: Thu, 21 Apr 2005 03:22:40 +0000 (+0000) Subject: Fix my last broken fix (that caused bug 1899) X-Git-Tag: 1.5.0alpha1~216 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=61a5c3b87d1eb253c52cd37ad4f475145652d5c1;p=lhc%2Fweb%2Fwiklou.git Fix my last broken fix (that caused bug 1899) --- diff --git a/index.php b/index.php index 513d45b910..c060cc4072 100644 --- a/index.php +++ b/index.php @@ -84,7 +84,7 @@ if ( '' == $title && 'delete' != $action ) { /* check variant links so that interwiki links don't have to worry about the possible different language variants */ - if( $wgTitle->getArticleID() == 0 ) + if( !is_null($wgTitle) && $wgTitle->getArticleID() == 0 ) $wgContLang->findVariantLink( $title, $wgTitle ); }