diff --git a/e107_handlers/form_handler.php b/e107_handlers/form_handler.php index e72884b897..b6ef4da119 100644 --- a/e107_handlers/form_handler.php +++ b/e107_handlers/form_handler.php @@ -3597,7 +3597,9 @@ public function option($option_title, $value, $selected = false, $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 "attributes(['value' => $value]) . $this->get_attributes($options) . '>'