Skip to content

Commit

Permalink
pkp/pkp-lib#10830 pass array to ArrayIterator in driver plugin (#4615)
Browse files Browse the repository at this point in the history
* pkp/pkp-lib#10830 pass array to ArrayIterator in driver plugin

* pkp/pkp-lib#10830 pass array to ArrayIterator in driver plugin with all()

Co-authored-by: Jonas Raoni Soares da Silva <[email protected]>

---------

Co-authored-by: Jonas Raoni Soares da Silva <[email protected]>
  • Loading branch information
kaitlinnewson and jonasraoni committed Jan 22, 2025
1 parent 7d9a164 commit cd5df48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/generic/driver/DRIVERDAO.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function &getDRIVERRecordsOrIdentifiers($setIds, $from, $until, $offset,
{
$records = [];

$result = new \ArrayIterator($this->_getRecordsRecordSetQuery($setIds, $from, $until, null)->get());
$result = new \ArrayIterator($this->_getRecordsRecordSetQuery($setIds, $from, $until, null)->get()->all());

$total = 0;
for ($i = 0; $i < $offset; $i++) {
Expand Down

0 comments on commit cd5df48

Please sign in to comment.