mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 17:59:22 +02:00
* fixed warning in highscores when vocation doesn't exist
This commit is contained in:
parent
bcb0feea1a
commit
73a5e13006
@ -209,7 +209,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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user