Fixed Doctrine_Pager::getResultsInPage() as reported by Matt Marcum through email.
This commit is contained in:
parent
ac6e976d93
commit
d3a261526e
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user