diff --git a/web/includes/functions.php b/web/includes/functions.php index 4d5ad44a3..9fea87df6 100644 --- a/web/includes/functions.php +++ b/web/includes/functions.php @@ -424,7 +424,7 @@ function htmlOptions($options, $values) { $has_selected = false; foreach ( $options as $value=>$option ) { $disabled = 0; - $text = ''; + $text = $class = ''; if ( is_array($option) ) { if ( isset($option['Name']) ) @@ -435,6 +435,9 @@ function htmlOptions($options, $values) { if ( isset($option['disabled']) ) { $disabled = $option['disabled']; } + if ( isset($option['class']) ) { + $class = $option['class']; + } } else if ( is_object($option) ) { $text = $option->Name(); } else { @@ -450,6 +453,7 @@ function htmlOptions($options, $values) { $options_html .= ''.PHP_EOL; } # end foreach options if ( $values and ((!is_array($values)) or count($values) ) and ! $has_selected ) {