Fixed Doctrine_Pager::getResultsInPage() as reported by Matt Marcum through email.
This commit is contained in:
parent
ac6e976d93
commit
d3a261526e
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue