diff --git a/system/pages/highscores.php b/system/pages/highscores.php index 1cc8e364..9237f1d0 100644 --- a/system/pages/highscores.php +++ b/system/pages/highscores.php @@ -30,10 +30,12 @@ if($config['highscores_vocation_box'] && isset($vocation)) if(strtolower($name) == $vocation) { $add_vocs = array($id); - $i = $id + $config['vocations_amount']; - while(isset($config['vocations'][$i])) { - $add_vocs[] = $i; - $i += $config['vocations_amount']; + if ($id !== 0) { + $i = $id + $config['vocations_amount']; + while(isset($config['vocations'][$i])) { + $add_vocs[] = $i; + $i += $config['vocations_amount']; + } } $add_sql = 'AND `vocation` IN (' . implode(', ', $add_vocs) . ')'; @@ -355,7 +357,7 @@ if($config['highscores_vocation_box'])