From: Aryeh Gregor Date: Fri, 21 Aug 2009 21:34:52 +0000 (+0000) Subject: Omit useless value="" in Html::input() X-Git-Tag: 1.31.0-rc.0~40150 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=f61d9e089d691203543a523d29e43b216caad184;p=lhc%2Fweb%2Fwiklou.git Omit useless value="" in Html::input() --- 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;