summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/sys_template.php6
1 files changed, 5 insertions, 1 deletions
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 '<div class="form-group">' . '<label for="' . $for . '">' . $label . '</label>' . $input . '</div>';
+ if ($label == '') {
+ return '<div class="form-group">' . $input . '</div>';
+ }else {
+ return '<div class="form-group">' . '<label for="' . $for . '">' . $label . '</label>' . $input . '</div>';
+ }
}
/**