Merge branch 'ent-4306-Error-de-paginacion-en-Nodo' into 'develop'

Fix pagination blank page - #4306

See merge request artica/pandorafms!2580
This commit is contained in:
Daniel Rodriguez 2019-07-16 10:49:14 +02:00
commit 18da97e9a7
1 changed files with 1 additions and 1 deletions

View File

@ -2055,7 +2055,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);
}