Index: trunk/phase3/includes/api/ApiQueryRevisions.php |
— | — | @@ -212,7 +212,8 @@ |
213 | 213 | $this->validateLimit('limit', $limit, 1, $userMax, $botMax); |
214 | 214 | |
215 | 215 | // 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)); |
217 | 218 | |
218 | 219 | if(!is_null($params['user'])) { |
219 | 220 | $this->addWhereFld('rev_user_text', $params['user']); |