From e8f73d6e9cbff542b821ddf9066a195763755a44 Mon Sep 17 00:00:00 2001 From: Andrew Garrett Date: Wed, 15 Jul 2009 16:36:04 +0000 Subject: [PATCH] Force select-or-other type fields to string values, fixing problem where stub threshold was not being properly loaded into preferences window once saved differently to the default --- includes/HTMLForm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/HTMLForm.php b/includes/HTMLForm.php index ae35756bac..9d3c38e986 100644 --- a/includes/HTMLForm.php +++ b/includes/HTMLForm.php @@ -647,7 +647,7 @@ class HTMLSelectOrOtherField extends HTMLTextField { $selected = $valInSelect ? $value : 'other'; $select = new XmlSelect( $this->mName, $this->mID, $selected ); - $select->addOptions( $this->mParams['options'] ); + $select->addOptions( array_map( 'strval', $this->mParams['options'] ) ); $select->setAttribute( 'class', 'mw-htmlform-select-or-other' ); -- 2.20.1