Bug #3637 [Opn]: Error in Pager/Pager_Wrapper (DBDO) means it doesn't page
| From: | lee dot bolding at richemont dot com | Date: | Mon, 28 Feb 2005 15:13:50 +0000 |
| Subject: | Bug #3637 [Opn]: Error in Pager/Pager_Wrapper (DBDO) means it doesn't page | ||
| References: | 1 | Groups: | php.pear.doc |
| Request: | Send a blank email to pear-doc+get-5592@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=3637&edit=1
ID: 3637
User updated by: lee dot bolding at richemont dot com
-Summary: Error in Pager_Wrapper (DBDO) means it doesn't page
Reported By: lee dot bolding at richemont dot com
Status: Open
Type: Bug
Package: Documentation
Operating System: Solaris
PHP Version: 4.3.2
New Comment:
forgot to mention this is in the Pager package
Previous Comments:
------------------------------------------------------------------------
[2005-02-28 10:10:18] lee dot bolding at richemont dot com
Description:
------------
This line:
$db->limit($page['from'] - 1, $pagerOpt['perPage']);
in Pager_Wrapper.php is wrong - it refers to a non existent options
array. It should read :
$db->limit($page['from'] - 1, $pager_options['perPage']);
Without this change the poager will always return all results from a
query, without paging
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=3637&edit=1