Browse Source

Correct typecast of math expression

Bryan Crowe 11 years ago
parent
commit
083bffadea
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/View/Helper/PaginatorHelper.php

+ 1 - 1
src/View/Helper/PaginatorHelper.php

@@ -620,7 +620,7 @@ class PaginatorHelper extends Helper {
 		$ellipsis = $templater->format('ellipsis', []);
 
 		if ($options['modulus'] && $params['pageCount'] > $options['modulus']) {
-			$half = (int)$options['modulus'] / 2;
+			$half = (int)($options['modulus'] / 2);
 			$end = $params['page'] + $half;
 
 			if ($end > $params['pageCount']) {