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