Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2_Queries.php |
— | — | @@ -746,8 +746,8 @@ |
747 | 747 | $where = ''; |
748 | 748 | |
749 | 749 | if ( $description instanceof SMWValueDescription ) { |
750 | | - $dv = $description->getDataItem(); |
751 | | - $keys = $dv->getDBkeys(); |
| 750 | + $dataItem = $description->getDataItem(); |
| 751 | + $keys = SMWCompatibilityHelpers::getDBkeysFromDataItem( $dataItem ); |
752 | 752 | |
753 | 753 | // Try comparison based on value field and comparator. |
754 | 754 | if ( $valueIndex >= 0 ) { |