Bug #3637 [NEW]: Error in Pager_Wrapper (DBDO) means it doesn't page
| From: | lee dot bolding at richemont dot com | Date: | Mon, 28 Feb 2005 15:10:18 +0000 |
| Subject: | Bug #3637 [NEW]: Error in Pager_Wrapper (DBDO) means it doesn't page | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-5591@lists.php.net to get a copy of this message | ||
From: lee dot bolding at richemont dot com
Operating system: Solaris
PHP version: 4.3.2
Package: Documentation
Bug Type: Bug
Bug description: Error in Pager_Wrapper (DBDO) means it doesn't page
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 bug report at http://pear.php.net/bugs/bug.php?id=3637&edit=1
--