Skip to content

Commit

Permalink
Halt if all bills are tagged
Browse files Browse the repository at this point in the history
  • Loading branch information
waldoj committed Jan 22, 2024
1 parent f031471 commit da898bf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cron/tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@
$stmt->execute();
$bills = $stmt->fetchAll(PDO::FETCH_ASSOC);

if (count($bills) == 0)
{
return;
}

foreach ($bills as &$bill) {
$bill['summary'] = strip_tags($bill['summary']);
}
Expand Down

0 comments on commit da898bf

Please sign in to comment.