mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-05 19:12:42 +00:00
Moving limit from the options to the normal paging params. This fixes a few notice errors.
This commit is contained in:
parent
176d5520f6
commit
cc2d8e2fec
4 changed files with 6 additions and 11 deletions
|
@ -525,9 +525,9 @@ class PaginatorHelper extends AppHelper {
|
|||
}
|
||||
$start = 0;
|
||||
if ($paging['count'] >= 1) {
|
||||
$start = (($paging['page'] - 1) * $paging['options']['limit']) + 1;
|
||||
$start = (($paging['page'] - 1) * $paging['limit']) + 1;
|
||||
}
|
||||
$end = $start + $paging['options']['limit'] - 1;
|
||||
$end = $start + $paging['limit'] - 1;
|
||||
if ($paging['count'] < $end) {
|
||||
$end = $paging['count'];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue