Fix warning in PHP 7.1

Refs #9592
This commit is contained in:
mark_story 2016-10-11 16:59:35 -04:00
parent 5e0dc218f1
commit 8baf193995

View file

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