Skip to content

Commit

Permalink
for issue 17779
Browse files Browse the repository at this point in the history
  • Loading branch information
aliber4079 committed Oct 23, 2022
1 parent a1f933d commit 9a411e1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions libraries/classes/Display/Results.php
Original file line number Diff line number Diff line change
Expand Up @@ -738,9 +738,13 @@ private function getTableNavigation(
: 'false') . ';"';

$hasRealEndInput = $isInnodb && $this->properties['unlim_num_rows'] > $GLOBALS['cfg']['MaxExactCount'];
$posLast = @((int) ceil(
(int) $this->properties['unlim_num_rows'] / $_SESSION['tmpval']['max_rows']
) - 1) * intval($_SESSION['tmpval']['max_rows']);
if (is_numeric($_SESSION['tmpval']['max_rows'])) {
$posLast = @((int) ceil(
(int) $this->properties['unlim_num_rows'] / $_SESSION['tmpval']['max_rows']
) - 1) * intval($_SESSION['tmpval']['max_rows']);
} else {
$posLast=0;
}

$hiddenFields = [
'db' => $this->properties['db'],
Expand Down

0 comments on commit 9a411e1

Please sign in to comment.