* fixed warning in highscores when vocation doesn't exist

This commit is contained in:
slawkens1 2018-01-07 12:06:00 +01:00
parent de7366e9a9
commit 2085f7e128

View File

@ -219,7 +219,11 @@ echo '
$player['vocation'] += ($player['promotion'] * $config['vocations_amount']); $player['vocation'] += ($player['promotion'] * $config['vocations_amount']);
} }
echo '<br/><small>' . $config['vocations'][$player['vocation']] . '</small>'; $tmp = 'Unknown';
if(isset($config['vocations'][$player['vocation']])) {
$tmp = $config['vocations'][$player['vocation']];
}
echo '<br/><small>' . $tmp . '</small>';
} }
echo ' echo '
</td> </td>