diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-04-24 07:38:45 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-04-24 07:38:45 +0200 |
commit | e726d076c37d57d4993958bd0c1ef9764cd54b09 (patch) | |
tree | 2673163de0bdc935221bf34e4b638931278e7815 | |
parent | 438319e63a17f3ae5927b274ef491b6e9514f934 (diff) |
_checked_in: Fix misleading output on arrival_countdown == 0
-rw-r--r-- | templates/_checked_in.html.ep | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep index dd1308a..37b1c3c 100644 --- a/templates/_checked_in.html.ep +++ b/templates/_checked_in.html.ep @@ -31,7 +31,7 @@ % if ($status->{departure_countdown} > 120) { Abfahrt in <%= int($status->{departure_countdown} / 60) %> Minuten % } - % elsif ($status->{arrival_countdown}) { + % elsif (defined $status->{arrival_countdown}) { % if ($status->{arrival_countdown} > 0) { Ankunft in <%= int($status->{arrival_countdown} / 60) %> Minute<%= int($status->{arrival_countdown} / 60) == 1 ? '' : 'n' %> |