mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 21:27:25 +02:00
Make sure drop-down value is a string.
This commit is contained in:
@@ -2623,12 +2623,12 @@ class e_form
|
|||||||
$text .= $this->option($diz, '');
|
$text .= $this->option($diz, '');
|
||||||
}
|
}
|
||||||
|
|
||||||
if(varset($options['useValues'])) // use values as keys.
|
if(!empty($options['useValues'])) // use values as keys.
|
||||||
{
|
{
|
||||||
$new = array();
|
$new = array();
|
||||||
foreach($option_array as $v)
|
foreach($option_array as $v)
|
||||||
{
|
{
|
||||||
$new[$v] = $v;
|
$new[$v] = (string) $v;
|
||||||
}
|
}
|
||||||
$option_array = $new;
|
$option_array = $new;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user