r56462 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r56461‎ | r56462 | r56463 >
Date:23:59, 16 September 2009
Author:aaron
Status:ok
Tags:
Comment:
$nt may or may not be an object
Modified paths:
  • /trunk/phase3/languages/LanguageConverter.php (modified) (history)

Diff [purge]

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

Follow-up revisions

RevisionCommit summaryAuthorDate
r56467merge r56462 fix from trunkbrion00:27, 17 September 2009

Status & tagging log