From 2085f7e1283072c0e10af17a56ac911be46019c7 Mon Sep 17 00:00:00 2001 From: slawkens1 Date: Sun, 7 Jan 2018 12:06:00 +0100 Subject: [PATCH] * fixed warning in highscores when vocation doesn't exist --- system/pages/highscores.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/system/pages/highscores.php b/system/pages/highscores.php index c39f35a2..2f0ecf82 100644 --- a/system/pages/highscores.php +++ b/system/pages/highscores.php @@ -219,7 +219,11 @@ echo ' $player['vocation'] += ($player['promotion'] * $config['vocations_amount']); } - echo '
' . $config['vocations'][$player['vocation']] . ''; + $tmp = 'Unknown'; + if(isset($config['vocations'][$player['vocation']])) { + $tmp = $config['vocations'][$player['vocation']]; + } + echo '
' . $tmp . ''; } echo '