summaryrefslogtreecommitdiff
path: root/templates/wagenreihung.html.ep
diff options
context:
space:
mode:
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>
% }