From 2ce07a807ab533107a2b1b8b05c062aec0afae66 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 11 Mar 2015 12:55:03 +0100 Subject: toplist: handle empty list result (fix division by zero) --- templates/toplist.html.ep | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'templates') diff --git a/templates/toplist.html.ep b/templates/toplist.html.ep index daead42..f639e36 100644 --- a/templates/toplist.html.ep +++ b/templates/toplist.html.ep @@ -1,5 +1,11 @@ %= include 'topform'; +% if (@{$toplist} == 0) { +
+Keine Daten mit diesen Parametern gefunden. +
+% } +% else {
@@ -13,3 +19,4 @@ % }
MeldungAnteilAnzahl
+% } -- cgit v1.2.3