From f61d9e089d691203543a523d29e43b216caad184 Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Fri, 21 Aug 2009 21:34:52 +0000 Subject: [PATCH] Omit useless value="" in Html::input() --- includes/Html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Html.php b/includes/Html.php index 18d7390da3..075cb3b8b6 100644 --- a/includes/Html.php +++ b/includes/Html.php @@ -347,7 +347,7 @@ class Html { if ( $type != 'text' ) { $attribs['type'] = $type; } - if ( $value !== null ) { + if ( $value !== null && $value !== '' ) { $attribs['value'] = $value; } $attribs['name'] = $name; -- 2.20.1