Permalink
Browse files

Fix last page link

  • Loading branch information...
1 parent 6a7021d commit fc689f59533e03d63656868a6aaa0034caec2d1c @vrana committed Aug 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 adminer/select.inc.php
View
@@ -412,7 +412,7 @@
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) : ' <a href="' . h(remove_from_uri() . "&page=last") . '">' . lang('last') . "</a>");
+ echo ($page + 5 < $max_page ? " ..." : "") . ($exact_count && $found_rows !== false ? pagination($max_page, $page) : ' <a href="' . h(remove_from_uri("page") . "&page=last") . '">' . lang('last') . "</a>");
}
echo ($found_rows !== false ? " (" . ($exact_count ? "" : "~ ") . lang('%d row(s)', $found_rows) . ")" : "") . " " . checkbox("all", 1, 0, lang('whole result')) . "\n";

0 comments on commit fc689f5

Please sign in to comment.