Index: trunk/phase3/languages/LanguageConverter.php |
— | — | @@ -566,7 +566,7 @@ |
567 | 567 | function findVariantLink( &$link, &$nt, $ignoreOtherCond = false ) { |
568 | 568 | # If the article has already existed, there is no need to |
569 | 569 | # check it again, otherwise it may cause a fault. |
570 | | - if ( $nt->exists() ) |
| 570 | + if ( is_object( $nt ) && $nt->exists() ) |
571 | 571 | return; |
572 | 572 | |
573 | 573 | global $wgDisableLangConversion, $wgDisableTitleConversion, $wgRequest, $wgUser; |