In certain circumstances the pager can display more pages than it normally should. The problem lies here:
|
$end = $begin + $this->maxPages - 2; |
The problem here is that here $end can be more than the maximum number of available pages if the
$this->maxPages parameter is higher than 4