r38947 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r38946‎ | r38947 | r38948 >
Date:20:48, 8 August 2008
Author:mkroetzsch
Status:old
Tags:
Comment:
Fixed bug 14812
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2.php
@@ -377,6 +377,8 @@
378378 wfProfileIn("SMWSQLStore2::getPropertyValues (SMW)");
379379 if ($subject !== NULL) {
380380 $sid = $this->getSMWPageID($subject->getDBkey(), $subject->getNamespace(),$subject->getInterwiki());
 381+ } else {
 382+ $sid = 0;
381383 }
382384 $pid = $this->getSMWPageID($property->getDBkey(), SMW_NS_PROPERTY, $property->getInterwiki());
383385 if ( ( ($sid == 0) && ($subject !== NULL) ) || ($pid == 0)) {

Status & tagging log