From: Happy-melon Date: Sat, 13 Mar 2010 16:11:36 +0000 (+0000) Subject: Strict type checking, otherwise can't set a default value of '0'. X-Git-Tag: 1.31.0-rc.0~37467 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_aide%28?a=commitdiff_plain;h=85a6396920b9f50f27436dc78725fd62c658d7fd;p=lhc%2Fweb%2Fwiklou.git Strict type checking, otherwise can't set a default value of '0'. --- diff --git a/includes/Xml.php b/includes/Xml.php index cf3f2ab372..eddf0af691 100644 --- a/includes/Xml.php +++ b/includes/Xml.php @@ -744,7 +744,7 @@ class XmlSelect { public function __construct( $name = false, $id = false, $default = false ) { if ( $name ) $this->setAttribute( 'name', $name ); if ( $id ) $this->setAttribute( 'id', $id ); - if ( $default ) $this->default = $default; + if ( $default !== false ) $this->default = $default; } public function setDefault( $default ) {