diff --git a/adminer/select.inc.php b/adminer/select.inc.php index efc2c054..8ad42c83 100644 --- a/adminer/select.inc.php +++ b/adminer/select.inc.php @@ -423,11 +423,10 @@ if (!$columns) { echo pagination($i, $page); } echo ($page + 5 < $max_page ? " ..." : "") . ($exact_count && $found_rows !== false ? pagination($max_page, $page) : ' ' . lang('last') . ""); - if (count($rows) >= $limit) { - echo ' ' . lang('Load more data') . ''; - } } - echo ($found_rows !== false ? " (" . ($exact_count ? "" : "~ ") . lang('%d row(s)', $found_rows) . ")" : "") . " " . checkbox("all", 1, 0, lang('whole result')) . "\n"; + echo ($found_rows !== false ? " (" . ($exact_count ? "" : "~ ") . lang('%d row(s)', $found_rows) . ")" : ""); + echo (+$limit && ($found_rows === false ? count($rows) + 1 : $found_rows - $page * $limit) > $limit ? ' ' . lang('Load more data') . '' : ''); + echo " " . checkbox("all", 1, 0, lang('whole result')) . "\n"; if ($adminer->selectCommandPrint()) { ?>