X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fhtmlform%2FHTMLSelectField.php;h=c32b445157ff2b1bb3caa88f2c3c69ddbf847edb;hb=08f105e2d93bf6f2be0d7dc8d6017b41ec6ad3b0;hp=043748095c7e1499ab759a81dbb635f0d86798e4;hpb=74a2834df39f3a98f3689c583bb7313aede40be6;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/htmlform/HTMLSelectField.php b/includes/htmlform/HTMLSelectField.php index 043748095c..c32b445157 100644 --- a/includes/htmlform/HTMLSelectField.php +++ b/includes/htmlform/HTMLSelectField.php @@ -13,7 +13,7 @@ class HTMLSelectField extends HTMLFormField { $validOptions = HTMLFormField::flattenOptions( $this->getOptions() ); - if ( in_array( $value, $validOptions ) ) { + if ( in_array( strval( $value ), $validOptions, true ) ) { return true; } else { return $this->msg( 'htmlform-select-badoption' )->parse();