Skip to content

Commit

Permalink
Fix #195
Browse files Browse the repository at this point in the history
  • Loading branch information
slawkens committed Jun 4, 2022
1 parent e2575c3 commit 3d56214
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system/pages/highscores.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
$_page = isset($_GET['page']) ? $_GET['page'] : 0;
$vocation = isset($_GET['vocation']) ? $_GET['vocation'] : NULL;

if(!is_numeric($_page) || $_page < 1 || $_page > PHP_INT_MAX) {
$_page = 1;
if(!is_numeric($_page) || $_page < 0 || $_page > PHP_INT_MAX) {
$_page = 0;
}

$add_sql = '';
Expand Down

0 comments on commit 3d56214

Please sign in to comment.