We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0404251 commit c958e27Copy full SHA for c958e27
1 file changed
libraries/classes/Display/Results.php
@@ -738,9 +738,12 @@ private function getTableNavigation(
738
: 'false') . ';"';
739
740
$hasRealEndInput = $isInnodb && $this->properties['unlim_num_rows'] > $GLOBALS['cfg']['MaxExactCount'];
741
- $posLast = @((int) ceil(
742
- (int) $this->properties['unlim_num_rows'] / $_SESSION['tmpval']['max_rows']
743
- ) - 1) * intval($_SESSION['tmpval']['max_rows']);
+ $posLast = 0;
+ if (is_numeric($_SESSION['tmpval']['max_rows'])) {
+ $posLast = @((int) ceil(
744
+ (int) $this->properties['unlim_num_rows'] / $_SESSION['tmpval']['max_rows']
745
+ ) - 1) * intval($_SESSION['tmpval']['max_rows']);
746
+ }
747
748
$hiddenFields = [
749
'db' => $this->properties['db'],
0 commit comments