mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +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'];
|
$config_vocations = $config['vocations'];
|
||||||
if($config['highscores_vocation_box'] && isset($vocation))
|
if($config['highscores_vocation_box'] && isset($vocation))
|
||||||
{
|
{
|
||||||
for($i = 1; $i < count($config_vocations) / 2; $i++)
|
foreach($config['vocations'] as $id => $name) {
|
||||||
{
|
if(strtolower($name) == $vocation) {
|
||||||
if(strtolower($config_vocations[$i]) == $vocation)
|
$add_sql = 'AND ' . $db->fieldName('vocation') . ' = ' . $db->quote($id);
|
||||||
{
|
|
||||||
$add_sql = 'AND ' . $db->fieldName('vocation') . ' = ' . $db->quote($i);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user