Only show total length of a series if the number is positive
This commit is contained in:
parent
3b754ce634
commit
66fca53dfc
@ -36,7 +36,7 @@ use function Aviat\AnimeClient\getLocalImg;
|
|||||||
</tr>
|
</tr>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
||||||
<?php if (isset($data['total_length'], $data['episode_count']) && ! empty($data['total_length'])): ?>
|
<?php if (isset($data['total_length'], $data['episode_count']) && $data['total_length'] > 0): ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Total Length</td>
|
<td>Total Length</td>
|
||||||
<td><?= Kitsu::friendlyTime($data['total_length']) ?></td>
|
<td><?= Kitsu::friendlyTime($data['total_length']) ?></td>
|
||||||
|
Loading…
Reference in New Issue
Block a user