mirror of
https://github.com/slawkens/myaac.git
synced 2025-06-11 15:24:29 +02:00
Fix highscores page bug with high pages
This commit is contained in:
parent
e255c35002
commit
9e949eb32a
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user