Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_Description.php |
— | — | @@ -299,7 +299,8 @@ |
300 | 300 | |
301 | 301 | public function getQueryString() { |
302 | 302 | $result = ''; |
303 | | - // TODO: this is not quite correct ... (many disjunctions have || abbreviations) |
| 303 | + // TODO: this is not correct ... (many disjunctions have || abbreviations, OR does not work yet) |
| 304 | + $first = true; |
304 | 305 | foreach ($this->m_descriptions as $desc) { |
305 | 306 | if ($first) { |
306 | 307 | $first = false; |
— | — | @@ -308,7 +309,7 @@ |
309 | 310 | } |
310 | 311 | $result .= $desc->getQueryString(); |
311 | 312 | } |
312 | | - return $result; |
| 313 | + return '(' . $result . ')'; |
313 | 314 | } |
314 | 315 | } |
315 | 316 | |