Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SparqlStoreQueryEngine.php |
— | — | @@ -710,7 +710,11 @@ |
711 | 711 | $condition = "$subjectName $propertyName $objectName .\n"; |
712 | 712 | $innerConditionString = $innerCondition->getCondition() . $innerCondition->getWeakConditionString(); |
713 | 713 | if ( $innerConditionString !== '' ) { |
714 | | - $condition .= "{ $innerConditionString}\n" ; |
| 714 | + if ( $innerCondition instanceof SMWSparqlFilterCondition ) { |
| 715 | + $condition .= $innerConditionString; |
| 716 | + } else { |
| 717 | + $condition .= "{ $innerConditionString}\n"; |
| 718 | + } |
715 | 719 | } |
716 | 720 | $result = new SMWSparqlWhereCondition( $condition, true, $namespaces ); |
717 | 721 | |