Fixed an notice error in highscores if type is not specified.

This commit is contained in:
Stefan Brannfjell 2014-06-16 01:42:40 +02:00
parent a6babfe0e3
commit 52721610c4

View File

@ -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