From fc689f59533e03d63656868a6aaa0034caec2d1c Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Sun, 19 Aug 2012 19:55:57 -0700 Subject: [PATCH] Fix last page link --- adminer/select.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adminer/select.inc.php b/adminer/select.inc.php index 5f176deb..dfdc5b43 100644 --- a/adminer/select.inc.php +++ b/adminer/select.inc.php @@ -412,7 +412,7 @@ if (!$columns) { for ($i = max(1, $page - 4); $i < min($max_page, $page + 5); $i++) { echo pagination($i, $page); } - echo ($page + 5 < $max_page ? " ..." : "") . ($exact_count && $found_rows !== false ? pagination($max_page, $page) : ' ' . lang('last') . ""); + echo ($page + 5 < $max_page ? " ..." : "") . ($exact_count && $found_rows !== false ? pagination($max_page, $page) : ' ' . lang('last') . ""); } echo ($found_rows !== false ? " (" . ($exact_count ? "" : "~ ") . lang('%d row(s)', $found_rows) . ")" : "") . " " . checkbox("all", 1, 0, lang('whole result')) . "\n";