mirror of
https://github.com/vrana/adminer.git
synced 2025-08-23 14:43:08 +02:00
Don't count rows if we reached the end
This commit is contained in:
@@ -445,8 +445,8 @@ if (!$columns && support("table")) {
|
||||
if (($rows || $page) && !is_ajax()) {
|
||||
$exact_count = true;
|
||||
if ($_GET["page"] != "last") {
|
||||
if ($limit == "") {
|
||||
$found_rows = count($rows);
|
||||
if ($limit == "" || (count($rows) < $limit && ($rows || !$page))) {
|
||||
$found_rows = ($page ? $page * $limit : 0) + count($rows);
|
||||
} elseif ($jush != "sql" || !$is_group) {
|
||||
$found_rows = ($is_group ? false : found_rows($table_status, $where));
|
||||
if ($found_rows < max(1e4, 2 * ($page + 1) * $limit)) {
|
||||
|
Reference in New Issue
Block a user