Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2.php |
— | — | @@ -377,6 +377,8 @@ |
378 | 378 | wfProfileIn("SMWSQLStore2::getPropertyValues (SMW)"); |
379 | 379 | if ($subject !== NULL) { |
380 | 380 | $sid = $this->getSMWPageID($subject->getDBkey(), $subject->getNamespace(),$subject->getInterwiki()); |
| 381 | + } else { |
| 382 | + $sid = 0; |
381 | 383 | } |
382 | 384 | $pid = $this->getSMWPageID($property->getDBkey(), SMW_NS_PROPERTY, $property->getInterwiki()); |
383 | 385 | if ( ( ($sid == 0) && ($subject !== NULL) ) || ($pid == 0)) { |