diff options
author | Daniel Friesel <derf@finalrewind.org> | 2015-05-07 19:18:05 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2015-05-07 19:18:05 +0200 |
commit | edfe4e7acdf50e109bfaadf3d0e4a9b06ae3cc87 (patch) | |
tree | 9724476ae773c20c642b3becbc36668658467beb | |
parent | 1074e38d62c1717e136dab1f5309e2d18f223c5c (diff) |
clean tepmlate: fix uninitialized value warning
-rw-r--r-- | templates/clean.html.ep | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/clean.html.ep b/templates/clean.html.ep index bc9579c..69a8730 100644 --- a/templates/clean.html.ep +++ b/templates/clean.html.ep @@ -52,7 +52,7 @@ % if ($departure->{is_cancelled}) { <div class="minfo">Fahrt fällt aus</div> % } -% elsif ($departure->{delay} > 0) { +% elsif (defined $departure->{delay} and $departure->{delay} > 0) { <div class="minfo">+<%= $departure->{delay} %></div> % } </div> |