diff --git a/forms/FormField.php b/forms/FormField.php index cc2502a55..3d743329d 100644 --- a/forms/FormField.php +++ b/forms/FormField.php @@ -450,7 +450,7 @@ HTML; if(!empty($v) || $v === '0') $preparedAttributes .= " $k=\"" . Convert::raw2att($v) . "\""; } - if($content) return "<$tag$preparedAttributes>$content"; + if($content || $tag != 'input') return "<$tag$preparedAttributes>$content"; else return "<$tag$preparedAttributes />"; }