mirror of
https://github.com/vrana/adminer.git
synced 2025-08-16 19:44:00 +02:00
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:
@@ -173,7 +173,7 @@ function add_row(field) {
|
|||||||
}
|
}
|
||||||
echo "</table>\n";
|
echo "</table>\n";
|
||||||
if (intval($limit) && $found_rows > $limit) {
|
if (intval($limit) && $found_rows > $limit) {
|
||||||
$max_page = floor($found_rows / $limit);
|
$max_page = floor(($found_rows - 1) / $limit);
|
||||||
function print_page($page) {
|
function print_page($page) {
|
||||||
echo " " . ($page == $_GET["page"] ? $page + 1 : '<a href="' . htmlspecialchars(remove_from_uri("page") . ($page ? "&page=$page" : "")) . '">' . ($page + 1) . "</a>");
|
echo " " . ($page == $_GET["page"] ? $page + 1 : '<a href="' . htmlspecialchars(remove_from_uri("page") . ($page ? "&page=$page" : "")) . '">' . ($page + 1) . "</a>");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user