1
0
mirror of synced 2025-02-20 14:13:15 +03:00

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

This commit is contained in:
guilhermeblanco 2008-03-15 22:20:46 +00:00
parent ac6e976d93
commit d3a261526e

View File

@ -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();