Author: Pedro Lucas Porcellis <porcellis@eletrotupi.com>
dashboard: don't error out when there are no tags
app/views/dashboard.php | 2 +-
diff --git a/app/views/dashboard.php b/app/views/dashboard.php index cceb74f45de1022f4adb1f6fb4d7ac3d9070290c..88981aa22462557f16f3a223c985a40b03f3de2c 100644 --- a/app/views/dashboard.php +++ b/app/views/dashboard.php @@ -38,7 +38,7 @@<td class="py-3 px-6"><?= htmlspecialchars($bill->getTitle()) ?></td> <td class="py-3 px-6">$<?= number_format($bill->getAmount(), 2, '.', ',') ?></td> <td class="py-3 px-6"><?= date('d/m/Y', strtotime($bill->getDueDate())) ?></td> - <td class="py-3 px-6"><?= htmlspecialchars($bill->getTags()) ?></td> + <td class="py-3 px-6"><?= htmlspecialchars($bill->getTags() ?? '-') ?></td> <td class="py-3 px-6"><?= $bill->isPaid() ? 'Sim' : 'Não' ?></td> <td class="py-3 px-6 flex items-center space-x-2"> <a href="/bills/edit/<?= $bill->getId() ?>" class="text-yellow-600 hover:text-yellow-700">Editar</a>