Commit d3a26152 authored by guilhermeblanco's avatar guilhermeblanco

Fixed Doctrine_Pager::getResultsInPage() as reported by Matt Marcum through email.

parent ac6e976d
......@@ -394,7 +394,7 @@ class Doctrine_Pager
$page = $this->getPage();
if ($page != $this->getLastPage()) {
return $page * $this->getMaxPerPage();
return $this->getMaxPerPage();
}
$offset = ($this->getPage() - 1) * $this->getMaxPerPage();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment