From 85a6396920b9f50f27436dc78725fd62c658d7fd Mon Sep 17 00:00:00 2001 From: Happy-melon Date: Sat, 13 Mar 2010 16:11:36 +0000 Subject: [PATCH] Strict type checking, otherwise can't set a default value of '0'. --- includes/Xml.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) { -- 2.20.1