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:
phpnut 2007-03-04 10:31:02 +00:00
parent 41aff9c2f6
commit d4c62a855b

View file

@ -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']) {