Smaller $max_page

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@297 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana 2007-08-04 19:38:47 +00:00
parent af11cbb2a2
commit 55761cb45c

View file

@ -173,7 +173,7 @@ function add_row(field) {
}
echo "</table>\n";
if (intval($limit) && $found_rows > $limit) {
$max_page = floor($found_rows / $limit);
$max_page = floor(($found_rows - 1) / $limit);
function print_page($page) {
echo " " . ($page == $_GET["page"] ? $page + 1 : '<a href="' . htmlspecialchars(remove_from_uri("page") . ($page ? "&page=$page" : "")) . '">' . ($page + 1) . "</a>");
}