From 085a0aa992bf7d406c76c0f2412332e05c209590 Mon Sep 17 00:00:00 2001 From: Karl Date: Tue, 15 Aug 2017 18:19:13 +0200 Subject: [PATCH] add placeholder statement --- includes/elements.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/includes/elements.php b/includes/elements.php index f66b4ed..978f110 100644 --- a/includes/elements.php +++ b/includes/elements.php @@ -125,6 +125,10 @@ function print_list_result_bar_tricolore($list, $votes, $emph, $class){ $listclass = "list-".str_replace(' ','',$data['lists'][$listid]['name']); $prefix = ""; + if(trim($etext) == ''){ + $etext = "Zu dieser These hat die Partei kein Statement abgegeben."; + } + if($vote === 'skip'){ $prefix = "$name\n"; } @@ -222,4 +226,4 @@ function print_list_result_bar_tricolore($list, $votes, $emph, $class){ echo ''; } - ?> \ No newline at end of file + ?>