mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Merge pull request #9603 from cakephp/issue-9592
Fix warning in PHP 7.1
This commit is contained in:
commit
a3577978b0
1 changed files with 1 additions and 1 deletions
|
@ -946,7 +946,7 @@ class PaginatorHelper extends AppHelper {
|
|||
unset($options['tag'], $options['before'], $options['model'], $options['separator'], $options['ellipsis'], $options['class']);
|
||||
|
||||
$out = '';
|
||||
$lower = $params['pageCount'] - $last + 1;
|
||||
$lower = $params['pageCount'] - (int)$last + 1;
|
||||
|
||||
if ((is_int($last) || ctype_digit($last)) && $params['page'] <= $lower) {
|
||||
if ($before === null) {
|
||||
|
|
Loading…
Reference in a new issue