From: Chad Horohoe Date: Mon, 7 Jun 2010 18:20:30 +0000 (+0000) Subject: (bug 23797) Xml::input() now allows '0' for the value parameter X-Git-Tag: 1.31.0-rc.0~36598 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=bcf63be4ea77afc5999060fbd75d47c7118a600e;p=lhc%2Fweb%2Fwiklou.git (bug 23797) Xml::input() now allows '0' for the value parameter --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 2e1e67d8fa..ab91f9335d 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -189,6 +189,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN the $noRedir parameter is set to true * (bug 23688) Correct mime types for Office 2007 OpenXML documents. * (bug 23787) Corrected $wgDefaultSkin's comment in DefaultSettings.php +* (bug 23797) Xml::input() now allows '0' for the value parameter === API changes in 1.17 === * (bug 22738) Allow filtering by action type on query=logevent. diff --git a/includes/Xml.php b/includes/Xml.php index d3dc5ab5a3..22df1768b9 100644 --- a/includes/Xml.php +++ b/includes/Xml.php @@ -280,7 +280,7 @@ class Xml { $attributes['size'] = $size; } - if( $value ) { + if( $value !== false ) { // maybe 0 $attributes['value'] = $value; }