summaryrefslogtreecommitdiff
path: root/templates/wagenreihung.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-09-05 08:32:15 +0200
committerDaniel Friesel <derf@finalrewind.org>2020-09-05 08:32:15 +0200
commit8bf1dd3575bf58f1a50b28747f12f65a26b5a281 (patch)
tree668f4471e090c3c0730a2820acd0961edcda0f14 /templates/wagenreihung.html.ep
parent27cb1fc95b890eeecc551f6a08fc3761eb25283b (diff)
wagenreihung.html.ep: $wr may be undef
Diffstat (limited to 'templates/wagenreihung.html.ep')
-rw-r--r--templates/wagenreihung.html.ep4
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>
% }