diff options
author | Daniel Friesel <derf@finalrewind.org> | 2020-09-05 08:32:15 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2020-09-05 08:32:15 +0200 |
commit | 8bf1dd3575bf58f1a50b28747f12f65a26b5a281 (patch) | |
tree | 668f4471e090c3c0730a2820acd0961edcda0f14 /templates/wagenreihung.html.ep | |
parent | 27cb1fc95b890eeecc551f6a08fc3761eb25283b (diff) |
wagenreihung.html.ep: $wr may be undef
Diffstat (limited to 'templates/wagenreihung.html.ep')
-rw-r--r-- | templates/wagenreihung.html.ep | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/wagenreihung.html.ep b/templates/wagenreihung.html.ep index c4fade8..1ef0370 100644 --- a/templates/wagenreihung.html.ep +++ b/templates/wagenreihung.html.ep @@ -1,8 +1,8 @@ -% if ($wr->errstr) { +% if (not $wr or $wr->errstr) { <div class="container"> <div class="error"> <strong>Fehler bei der Abfrage der Wagenreihung:</strong> - <%= $wr->errstr %> + <%= $wr ? $wr->errstr : $wr_error %> </div> </div> % } |