From: Alexandre Emsenhuber Date: Sun, 18 Apr 2010 11:58:39 +0000 (+0000) Subject: Per report on translatewiki: "namespaces to search" user option always displays all... X-Git-Tag: 1.31.0-rc.0~37069 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=b90d6474879b7c56b8acf68e32f962527a0ffe9e;p=lhc%2Fweb%2Fwiklou.git Per report on translatewiki: "namespaces to search" user option always displays all fields unchecked --- diff --git a/includes/HTMLForm.php b/includes/HTMLForm.php index 5aa9ae8d6d..ba4720ee07 100644 --- a/includes/HTMLForm.php +++ b/includes/HTMLForm.php @@ -1270,7 +1270,7 @@ class HTMLMultiSelectField extends HTMLFormField { } else { $thisAttribs = array( 'id' => $this->mID . "-$info", 'value' => $info ); - $checkbox = Xml::check( $this->mName . '[]', $info === $value, + $checkbox = Xml::check( $this->mName . '[]', in_array( $info, $value, true ), $attribs + $thisAttribs ); $checkbox .= ' ' . Html::rawElement( 'label', array( 'for' => $this->mID . "-$info" ), $label );