diff --git a/libraries/DisplayResults.php b/libraries/DisplayResults.php index 34f563f5f1..e8cea12a98 100644 --- a/libraries/DisplayResults.php +++ b/libraries/DisplayResults.php @@ -1077,12 +1077,12 @@ class DisplayResults $maxRows = $_SESSION['tmpval']['max_rows']; $onsubmit = 'onsubmit="return ' - . ($_SESSION['tmpval']['pos'] + . (($_SESSION['tmpval']['pos'] + $maxRows < $this->__get('unlim_num_rows') && $this->__get('num_rows') >= $maxRows) ? 'true' - : 'false' . '"'; + : 'false') . '"'; // display the End button $buttons_html .= $this->_getTableNavigationButton(