ezsystems/ezpublish-legacy — pull request #863 by jeromegamez (2014-01-16 13:54:30+00:00)
Title: Fix EZP-22177: eZPersistentObject::handleRows() adds bogus rows

Unfortunately I can't explain why and how, but the change introduced in this commit https://github.com/ezsystems/ezpublish-legacy/commit/fcad133995a1e060792d7cd195c83f8895098b54 causes `eZPersistentObject::fetchObjectList()` to return a wrong number of rows when using the `$offset` parameter.

It might have something to do with the fact the `count( $rows )` is executed in each iteration and might change.

I tested the change manually in a current project and the problem went away

Cheers
:octocat: Jérôme