mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 09:19:22 +02:00
* some small fix regarding highscores vocation box
This commit is contained in:
parent
6863ba4883
commit
920c8a936f
@ -22,11 +22,9 @@ $add_sql = '';
|
||||
$config_vocations = $config['vocations'];
|
||||
if($config['highscores_vocation_box'] && isset($vocation))
|
||||
{
|
||||
for($i = 1; $i < count($config_vocations) / 2; $i++)
|
||||
{
|
||||
if(strtolower($config_vocations[$i]) == $vocation)
|
||||
{
|
||||
$add_sql = 'AND ' . $db->fieldName('vocation') . ' = ' . $db->quote($i);
|
||||
foreach($config['vocations'] as $id => $name) {
|
||||
if(strtolower($name) == $vocation) {
|
||||
$add_sql = 'AND ' . $db->fieldName('vocation') . ' = ' . $db->quote($id);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user