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 ce3e3427dc
commit c224c8d977

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>