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