diff --git a/select.inc.php b/select.inc.php index 4d7af1f4..2baf7fdb 100644 --- a/select.inc.php +++ b/select.inc.php @@ -173,7 +173,7 @@ function add_row(field) { } echo "\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 : '' . ($page + 1) . ""); }