Fix for r61957: initialise array variables explicitly.
authorTim Starling <tstarling@users.mediawiki.org>
Fri, 5 Feb 2010 04:40:57 +0000 (04:40 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Fri, 5 Feb 2010 04:40:57 +0000 (04:40 +0000)
includes/api/ApiQueryLogEvents.php
includes/api/ApiQueryRecentChanges.php
includes/api/ApiQueryUserContributions.php

index a0c1c4f..d6672b2 100644 (file)
@@ -70,7 +70,7 @@ class ApiQueryLogEvents extends ApiQueryBase {
                        'page' => array( 'LEFT JOIN',
                                array(  'log_namespace=page_namespace',
                                        'log_title=page_title' ) ) ) );
-               $index['logging'] = 'times'; // default, may change
+               $index = array( 'logging' => 'times' ); // default, may change
 
                $this->addFields( array (
                        'log_type',
index 0eb7dbd..0d284d6 100644 (file)
@@ -114,7 +114,7 @@ class ApiQueryRecentChanges extends ApiQueryBase {
                 */
                $db = $this->getDB();
                $this->addTables( 'recentchanges' );
-               $index['recentchanges'] = 'rc_timestamp'; // May change
+               $index = array( 'recentchanges' => 'rc_timestamp' ); // May change
                $this->addWhereRange( 'rc_timestamp', $params['dir'], $params['start'], $params['end'] );
                $this->addWhereFld( 'rc_namespace', $params['namespace'] );
                $this->addWhereFld( 'rc_deleted', 0 );
index 4a52f28..79ceb86 100644 (file)
@@ -193,7 +193,7 @@ class ApiQueryContributions extends ApiQueryBase {
                        $this->addWhereIf( 'rc_patrolled != 0', isset( $show['patrolled'] ) );
                }
                $this->addOption( 'LIMIT', $this->params['limit'] + 1 );
-               $index['revision'] = 'usertext_timestamp';
+               $index = array( 'revision' => 'usertext_timestamp' );
 
                // Mandatory fields: timestamp allows request continuation
                // ns+title checks if the user has access rights for this page