From edfe4e7acdf50e109bfaadf3d0e4a9b06ae3cc87 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 7 May 2015 19:18:05 +0200 Subject: clean tepmlate: fix uninitialized value warning --- templates/clean.html.ep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/clean.html.ep') 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}) {
Fahrt fällt aus
% } -% elsif ($departure->{delay} > 0) { +% elsif (defined $departure->{delay} and $departure->{delay} > 0) {
+<%= $departure->{delay} %>
% } -- cgit v1.2.3