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:
@@ -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";
|
||||
|
Reference in New Issue
Block a user