From ddced132cf806120ff291f101ddeeab51944c2d9 Mon Sep 17 00:00:00 2001 From: slawkens Date: Tue, 12 Nov 2024 20:42:06 +0100 Subject: [PATCH] Fix if highscores_vocation box is disabled causing Choose a vocation dropdown to fail --- system/pages/highscores.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/system/pages/highscores.php b/system/pages/highscores.php index bba1dff6..213d1534 100644 --- a/system/pages/highscores.php +++ b/system/pages/highscores.php @@ -31,12 +31,11 @@ if(!is_numeric($page) || $page < 1 || $page > PHP_INT_MAX) { $query = Player::query(); -$settingHighscoresVocationBox = setting('core.highscores_vocation_box'); $configVocations = config('vocations'); $configVocationsAmount = config('vocations_amount'); $vocationId = null; -if($settingHighscoresVocationBox && $vocation !== 'all') { +if($vocation !== 'all') { foreach($configVocations as $id => $name) { if(strtolower($name) == $vocation) { $vocationId = $id;