mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Adding fix for Ticket #2156
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4577 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
41aff9c2f6
commit
d4c62a855b
1 changed files with 1 additions and 1 deletions
|
@ -357,7 +357,7 @@ class PaginatorHelper extends AppHelper {
|
|||
$paging = $this->params($options['model']);
|
||||
$paging['pageCount'] = ife($paging['pageCount'] == 0, 1, $paging['pageCount']);
|
||||
|
||||
$start = ife($paging['page'] >= 1, ($paging['page'] - 1) * ($paging['options']['limit']) + 1, '0');
|
||||
$start = ife($paging['count'] >= 1, ($paging['page'] - 1) * ($paging['options']['limit']) + 1, '0');
|
||||
$end = ife(($paging['count'] < ($start + $paging['options']['limit'] - 1)), $paging['count'], ($start + $paging['options']['limit'] - 1));
|
||||
|
||||
switch ($options['format']) {
|
||||
|
|
Loading…
Add table
Reference in a new issue