Skip to content

Commit

Permalink
pkp/pkp-lib#10830 pass array to ArrayIterator in driver plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
kaitlinnewson committed Jan 21, 2025
1 parent 6636925 commit a7d725c
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()->toArray());

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

0 comments on commit a7d725c

Please sign in to comment.