Skip to content
Permalink
Browse files

Fix warning in PHP 7.1

Refs #9592
  • Loading branch information...
markstory committed Oct 11, 2016
1 parent 5e0dc21 commit 8baf193995682ea282944697c93004d25a1696f1
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/View/Helper/PaginatorHelper.php
@@ -946,7 +946,7 @@ public function last($last = 'last >>', $options = array()) {
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) {

0 comments on commit 8baf193

Please sign in to comment.
You can’t perform that action at this time.