From: Aaron Schulz Date: Wed, 16 Sep 2009 23:59:25 +0000 (+0000) Subject: $nt may or may not be an object X-Git-Tag: 1.31.0-rc.0~39699 X-Git-Url: http://git.cyclocoop.org/%22.%28%24lien.?a=commitdiff_plain;h=f9081316bbfd8c22886bf19653adc069e9965588;p=lhc%2Fweb%2Fwiklou.git $nt may or may not be an object --- diff --git a/languages/LanguageConverter.php b/languages/LanguageConverter.php index 91f2fa9cae..be76107c19 100644 --- a/languages/LanguageConverter.php +++ b/languages/LanguageConverter.php @@ -566,7 +566,7 @@ class LanguageConverter { function findVariantLink( &$link, &$nt, $ignoreOtherCond = false ) { # If the article has already existed, there is no need to # check it again, otherwise it may cause a fault. - if ( $nt->exists() ) + if ( is_object( $nt ) && $nt->exists() ) return; global $wgDisableLangConversion, $wgDisableTitleConversion, $wgRequest, $wgUser;