Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2_Queries.php |
— | — | @@ -639,7 +639,9 @@ |
640 | 640 | // *** Add conditions on the value of the property ***// |
641 | 641 | if ( ( count( $objectfields ) == 1 ) && ( reset( $objectfields ) == 'p' ) ) { // page description, process like main query |
642 | 642 | $sub = $this->compileQueries( $valuedesc ); |
643 | | - $objectfield = reset( array_keys( $objectfields ) ); |
| 643 | + |
| 644 | + $objectfield = array_keys( $objectfields ); |
| 645 | + $objectfield = reset( $objectfield ); |
644 | 646 | |
645 | 647 | if ( $sub >= 0 ) { |
646 | 648 | $query->components[$sub] = "{$query->alias}.{$objectfield}"; |