From b97154d19ecafbb3b98734851ceb74c27109da82 Mon Sep 17 00:00:00 2001 From: Felix Favre Date: Sat, 6 Dec 2014 20:01:47 +0100 Subject: [PATCH] form_element helper now supports empty labels --- includes/sys_template.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/includes/sys_template.php b/includes/sys_template.php index 4d4740d9..0e396a40 100644 --- a/includes/sys_template.php +++ b/includes/sys_template.php @@ -232,7 +232,11 @@ function form_select($name, $label, $values, $selected) { * Rendert ein Formular-Element */ function form_element($label, $input, $for = "") { - return '
' . '' . $input . '
'; + if ($label == '') { + return '
' . $input . '
'; + }else { + return '
' . '' . $input . '
'; + } } /**