Only show total length of a series if the number is positive

This commit is contained in:
Timothy Warren 2020-09-09 10:24:55 -04:00
parent 3b754ce634
commit 66fca53dfc

View File

@ -36,7 +36,7 @@ use function Aviat\AnimeClient\getLocalImg;
</tr>
<?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>
<td>Total Length</td>
<td><?= Kitsu::friendlyTime($data['total_length']) ?></td>