dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77f1f0a
)
Omit useless value="" in Html::input()
author
Aryeh Gregor
<simetrical@users.mediawiki.org>
Fri, 21 Aug 2009 21:34:52 +0000
(21:34 +0000)
committer
Aryeh Gregor
<simetrical@users.mediawiki.org>
Fri, 21 Aug 2009 21:34:52 +0000
(21:34 +0000)
includes/Html.php
patch
|
blob
|
history
diff --git
a/includes/Html.php
b/includes/Html.php
index
18d7390
..
075cb3b
100644
(file)
--- 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;