r40548 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r40547‎ | r40548 | r40549 >
Date:18:16, 6 September 2008
Author:vrandezo
Status:old
Tags:
Comment:
null object bugfix
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/specials/SearchTriple/SMW_SpecialSearchByProperty.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/specials/SearchTriple/SMW_SpecialSearchByProperty.php
@@ -101,7 +101,7 @@
102102 $skin = $wgUser->getSkin();
103103
104104 if ('' == $this->propertystring) return wfMsg('smw_sbv_docu') . "\n";
105 - if (!$this->value->isValid() || ($this==null)) return wfMsg('smw_sbv_novalue', $skin->makeLinkObj($this->property, $this->property->getText())) . "\n";
 105+ if (($this->value==null) || !$this->value->isValid()) return wfMsg('smw_sbv_novalue', $skin->makeLinkObj($this->property, $this->property->getText())) . "\n";
106106
107107 $wgOut->setPagetitle( $this->property->getText() . ' ' . $this->value->getShortHTMLText(null) );
108108 $html = '';

Status & tagging log