mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 20:58:30 +01:00
Issue #5093 - Precaution in case an array is parsed.
This commit is contained in:
parent
1c452038fb
commit
100e28ed2b
@ -3597,7 +3597,9 @@ var_dump($select_options);*/
|
||||
|
||||
$options = $this->format_options('option', '', $options);
|
||||
$options['selected'] = $selected; //comes as separate argument just for convenience
|
||||
$ltitle = strtolower($option_title);
|
||||
|
||||
$ltitle = is_string($option_title) ? strtolower($option_title) : $option_title;
|
||||
|
||||
$label = ($ltitle === 'true' || $ltitle === 'false') ? $option_title : defset($option_title, $option_title);
|
||||
|
||||
return "<option" . $this->attributes(['value' => $value]) . $this->get_attributes($options) . '>'
|
||||
|
Loading…
x
Reference in New Issue
Block a user