Fix highscores page bug with high pages

This commit is contained in:
slawkens 2022-03-16 16:56:03 +01:00
parent e255c35002
commit 9e949eb32a

View File

@ -18,6 +18,10 @@ $list = isset($_GET['list']) ? $_GET['list'] : '';
$_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;
}
$add_sql = '';
$config_vocations = $config['vocations'];
if($config['highscores_vocation_box'] && isset($vocation))