mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 09:19:22 +02:00
Fix highscores if there is only 1 record
This commit is contained in:
parent
714476bf29
commit
ddb093ec48
@ -311,7 +311,6 @@ if(config('highscores_balance'))
|
||||
/** @var Twig\Environment $twig */
|
||||
$twig->display('highscores.html.twig', [
|
||||
'highscores' => $highscores,
|
||||
'totalRows' => $i - 1,
|
||||
'list' => $list,
|
||||
'skill' => $skill,
|
||||
'skillName' => ($skill == SKILL_FRAGS ? 'Frags' : ($skill == SKILL_BALANCE ? 'Balance' : getSkillName($skill))),
|
||||
|
@ -48,7 +48,7 @@
|
||||
{% endif %}
|
||||
</tr>
|
||||
|
||||
{% if totalRows < 1 %}
|
||||
{% if highscores|length < 1 %}
|
||||
<tr bgcolor="{{ config('darkborder') }}"><td colspan="100%">No records yet.</td></tr>
|
||||
{% else %}
|
||||
{% set row = 0 %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user