mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
* fixed warning in highscores when vocation doesn't exist
This commit is contained in:
parent
de7366e9a9
commit
2085f7e128
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user