Index: branches/REL1_14/phase3/includes/api/ApiQueryRevisions.php |
— | — | @@ -186,7 +186,7 @@ |
187 | 187 | $this->validateLimit('limit', $limit, 1, $userMax, $botMax); |
188 | 188 | |
189 | 189 | // There is only one ID, use it |
190 | | - $this->addWhereFld('rev_page', current(array_keys($pageSet->getGoodTitles()))); |
| 190 | + $this->addWhereFld('rev_page', reset(array_keys($pageSet->getGoodTitles()))); |
191 | 191 | |
192 | 192 | if(!is_null($params['user'])) { |
193 | 193 | $this->addWhereFld('rev_user_text', $params['user']); |