mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 06:38:00 +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)
|
foreach ((array) $option_array as $value => $label)
|
||||||
{
|
{
|
||||||
|
|
||||||
if(is_array($label))
|
if(is_array($label))
|
||||||
{
|
{
|
||||||
$text .= $this->optgroup($value, $label, $selected, $options, 0);
|
$text .= $this->optgroup($value, $label, $selected, $options, 0);
|
||||||
@@ -3321,9 +3322,9 @@ var_dump($select_options);*/
|
|||||||
{
|
{
|
||||||
$opts['data-title'] = $options['title'][$value];
|
$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";
|
$text .= $this->option($label, $value, $sel, $opts)."\n";
|
||||||
|
Reference in New Issue
Block a user