mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-04-30 03:09:22 +02:00
Fixed an notice error in highscores if type is not specified.
This commit is contained in:
parent
a6babfe0e3
commit
52721610c4
@ -5,9 +5,7 @@ if ($config['log_ip']) {
|
||||
}
|
||||
|
||||
// Fetch highscore type
|
||||
$type = getValue($_GET['type']);
|
||||
if (!$type) $type = 7;
|
||||
else $type = (int)$type;
|
||||
$type = (isset($_GET['type'])) ? (int)getValue($_GET['type']) : 7;
|
||||
if ($type > 9) $type = 7;
|
||||
|
||||
// Fetch highscore page
|
||||
|
Loading…
x
Reference in New Issue
Block a user