Fix my last broken fix (that caused bug 1899)
authorZheng Zhu <zhengzhu@users.mediawiki.org>
Thu, 21 Apr 2005 03:22:40 +0000 (03:22 +0000)
committerZheng Zhu <zhengzhu@users.mediawiki.org>
Thu, 21 Apr 2005 03:22:40 +0000 (03:22 +0000)
index.php

index 513d45b..c060cc4 100644 (file)
--- 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 );
        
 }