From 52721610c478ed294d24d2aca147b1a86a04d530 Mon Sep 17 00:00:00 2001 From: Stefan Brannfjell Date: Mon, 16 Jun 2014 01:42:40 +0200 Subject: [PATCH] Fixed an notice error in highscores if type is not specified. --- highscores.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/highscores.php b/highscores.php index 5b637bc..d82f2dc 100644 --- a/highscores.php +++ b/highscores.php @@ -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