r50516 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r50515‎ | r50516 | r50517 >
Date:14:15, 12 May 2009
Author:catrope
Status:ok
Tags:
Comment:
Fix E_STRICT reported on Translatewiki.net
Modified paths:
  • /trunk/phase3/includes/api/ApiQueryRevisions.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQueryRevisions.php
@@ -212,7 +212,8 @@
213213 $this->validateLimit('limit', $limit, 1, $userMax, $botMax);
214214
215215 // There is only one ID, use it
216 - $this->addWhereFld('rev_page', reset(array_keys($pageSet->getGoodTitles())));
 216+ $ids = array_keys($pageSet->getGoodTitles());
 217+ $this->addWhereFld('rev_page', reset($ids));
217218
218219 if(!is_null($params['user'])) {
219220 $this->addWhereFld('rev_user_text', $params['user']);

Status & tagging log