Skip to content

Commit

Permalink
ensure daysLeft is int
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed May 27, 2024
1 parent ac6b1c2 commit 5851807
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

<p class="mdl-typography--title margin">
<?php
$daysLeft = $this->data['daysLeft'] ?? 0;
$daysLeft = $this->data['daysLeft'] ?? '0';
$expiringMessage = $daysLeft < 2 ?
$this->t('{material:about2expire:expiring_in_a_day}') :
$this->t('{material:about2expire:expiring_soon}',
Expand Down

0 comments on commit 5851807

Please sign in to comment.