r69373 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r69372‎ | r69373 | r69374 >
Date:01:55, 15 July 2010
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Fixed PHP 5.3 issue
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2_Queries.php (modified) (history)

Diff [purge]

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

Status & tagging log