Merge pull request #17356 from lrb2/fix-browse-end

Fix table navigation layout if row count is unknown
This commit is contained in:
Maurício Meneghini Fauth 2022-04-22 13:50:38 -03:00 committed by GitHub
commit 2a2de71c06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -933,6 +933,11 @@ class Results
false
);
// If the number of rows is unknown, stop here (don't add the End button)
if ($this->properties['unlim_num_rows'] === false) {
return $buttonsHtml;
}
$inputForRealEnd = '';
// prepare some options for the End button
if ($isInnodb && $this->properties['unlim_num_rows'] > $GLOBALS['cfg']['MaxExactCount']) {

View File

@ -8,7 +8,7 @@
{{ navigation.page_selector|raw }}
{{ navigation.move_forward_buttons|raw }}
{% if navigation.number_total_page > 1 %}
{% if navigation.number_total_page != 1 %}
<td><div class="navigation_separator">|</div></td>
{% endif %}