Fix pagination blank page - #4306

This commit is contained in:
Tatiana Llorente 2019-07-05 09:31:23 +02:00
parent 8229f634e0
commit 31b19ab970
1 changed files with 1 additions and 1 deletions

View File

@ -2049,7 +2049,7 @@ function ui_pagination(
$actual_page = floor($offset / $pagination);
$ini_page = (floor($actual_page / $block_limit) * $block_limit);
$end_page = ($ini_page + $block_limit - 1);
if ($end_page > $number_of_pages) {
if ($end_page >= $number_of_pages) {
$end_page = ($number_of_pages - 1);
}