From: Andrew Garrett Date: Fri, 3 Jul 2009 14:06:22 +0000 (+0000) Subject: Fix bug in HTMLForm system where "Other" option for timezone was shown twice, reporte... X-Git-Tag: 1.31.0-rc.0~41117 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=ecdbf0758fb2068b8dd710905db63b32840c019e;p=lhc%2Fweb%2Fwiklou.git Fix bug in HTMLForm system where "Other" option for timezone was shown twice, reported as bug 19321 --- diff --git a/includes/HTMLForm.php b/includes/HTMLForm.php index fef77423b3..ae35756bac 100644 --- a/includes/HTMLForm.php +++ b/includes/HTMLForm.php @@ -630,7 +630,7 @@ class HTMLSelectOrOtherField extends HTMLTextField { static $jsAdded = false; function __construct( $params ) { - if( !array_key_exists( 'other', $params['options'] ) ) { + if( !in_array( 'other', $params['options'] ) ) { $params['options'][wfMsg( 'htmlform-selectorother-other' )] = 'other'; }