This commit is contained in:
Stefan Brannfjell
2014-08-30 15:32:25 +02:00
parent d33646e88d
commit d91e760d30
2 changed files with 2 additions and 2 deletions

View File

@@ -64,7 +64,7 @@ if ($scores) {
</select>
<select name="page">
<?php
$pages = (int)($highscore['rows'] / $highscore['rowsPerPage']) + 1;
$pages = (int)($highscore['rows'] / $highscore['rowsPerPage']);
for ($i = 0; $i < $pages; $i++) {
$x = $i + 1;
if ($x == $page) echo "<option value='".$x."' selected>Page: ".$x."</option>";