1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 06:07:32 +02:00

Fix for 'select' method - test validation.

This commit is contained in:
Cameron
2019-12-04 10:19:38 -08:00
parent 4f57c36442
commit 1ff3dd0f8d

View File

@@ -3304,6 +3304,7 @@ var_dump($select_options);*/
foreach ((array) $option_array as $value => $label)
{
if(is_array($label))
{
$text .= $this->optgroup($value, $label, $selected, $options, 0);
@@ -3321,9 +3322,9 @@ var_dump($select_options);*/
{
$opts['data-title'] = $options['title'][$value];
}
else
elseif(isset($opts['data-title']))
{
$opts['data-title'] = '';
unset($opts['data-title']);
}
$text .= $this->option($label, $value, $sel, $opts)."\n";