From 63dbb1c6c9cc93aaaf2dc74e046a4d958e680a0e Mon Sep 17 00:00:00 2001 From: g4b0 Date: Wed, 2 Jan 2013 15:47:06 +0100 Subject: [PATCH] BUG:removed null FormField value. fixes #8088 --- forms/FormField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forms/FormField.php b/forms/FormField.php index b5f73a535..2a23c6205 100644 --- a/forms/FormField.php +++ b/forms/FormField.php @@ -125,7 +125,7 @@ class FormField extends RequestHandler { foreach($attributes as $k => $v) { // Note: as indicated by the $k == value item here; the decisions over what to include in the attributes // can sometimes get finicky - if(!empty($v) || $v === '0' || $k == 'value') { + if(!empty($v) || $v === '0' || ($k == 'value' && $v !== null) ) { $preparedAttributes .= " $k=\"" . Convert::raw2att($v) . "\""; } }