correct display of lives for Character submission in Questtype ?Boss-Fight?

This commit is contained in:
coderkun 2014-04-16 15:56:24 +02:00
commit dde85c6ac0

View file

@ -13,8 +13,8 @@
<section class="opponent">
<p class="fwb"><?=$character['name']?></p>
<p>
<?php if($lives['character'] > 0) : ?>
<?php foreach(range(1,$lives['character']) as $i) : ?>
<?php if($stage['lives']['character'] > 0) : ?>
<?php foreach(range(1,$stage['lives']['character']) as $i) : ?>
<i class="fa fa-heart fa-fw"></i>
<?php endforeach ?>
<?php else : ?>
@ -25,8 +25,8 @@
<section class="opponent">
<p class="fwb"><?=$fight['bossname']?></p>
<p>
<?php if($lives['boss'] > 0) : ?>
<?php foreach(range(1,$lives['boss']) as $i) : ?>
<?php if($stage['lives']['boss'] > 0) : ?>
<?php foreach(range(1,$stage['lives']['boss']) as $i) : ?>
<i class="fa fa-heart fa-fw"></i>
<?php endforeach ?>
<?php else : ?>