From d3a261526e43b1c9f577c72850d36e3c9c735fde Mon Sep 17 00:00:00 2001 From: guilhermeblanco Date: Sat, 15 Mar 2008 22:20:46 +0000 Subject: [PATCH] Fixed Doctrine_Pager::getResultsInPage() as reported by Matt Marcum through email. --- lib/Doctrine/Pager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/Pager.php b/lib/Doctrine/Pager.php index 4493be0a2..ffa5190ff 100644 --- a/lib/Doctrine/Pager.php +++ b/lib/Doctrine/Pager.php @@ -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();