Index: branches/REL1_13/phase3/includes/api/ApiQueryRevisions.php |
— | — | @@ -180,7 +180,7 @@ |
181 | 181 | $this->validateLimit('limit', $limit, 1, $userMax, $botMax); |
182 | 182 | |
183 | 183 | // There is only one ID, use it |
184 | | - $this->addWhereFld('rev_page', current(array_keys($pageSet->getGoodTitles()))); |
| 184 | + $this->addWhereFld('rev_page', reset(array_keys($pageSet->getGoodTitles()))); |
185 | 185 | |
186 | 186 | if(!is_null($user)) { |
187 | 187 | $this->addWhereFld('rev_user_text', $user); |