1
0
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:
Cameron 2017-04-13 09:52:32 -07:00
parent 6f47baed6c
commit 2f42b4ec2d

View File

@ -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;
}