r101195 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r101194‎ | r101195 | r101196 >
Date:20:56, 28 October 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
minor fix for when title does not exist
Modified paths:
  • /trunk/extensions/SemanticMaps/includes/queryprinters/SM_QueryHandler.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMaps/includes/queryprinters/SM_QueryHandler.php
@@ -367,7 +367,7 @@
368368 if ( $this->linkAbsolute ) {
369369 $t = Title::newFromText( $printRequest->getHTMLText( NULL ), SMW_NS_PROPERTY );
370370
371 - if ( $t->exists() ) {
 371+ if ( $t instanceof Title && $t->exists() ) {
372372 $propertyName = $propertyName = Html::element(
373373 'a',
374374 array( 'href' => $t->getFullUrl() ),