Skip to content

Commit

Permalink
Backporting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
moufmouf committed Dec 15, 2017
1 parent b119371 commit 0ec94ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mouf/Database/TDBM/AlterableResultIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ public function getIterator()
{
if ($this->alterations->count() === 0) {
if ($this->resultIterator !== null) {
return $this->resultIterator;
return clone $this->resultIterator;
} else {
return new \ArrayIterator([]);
}
Expand Down

0 comments on commit 0ec94ca

Please sign in to comment.