diff --git a/e107_handlers/form_handler.php b/e107_handlers/form_handler.php index a131360c0..087dde530 100644 --- a/e107_handlers/form_handler.php +++ b/e107_handlers/form_handler.php @@ -1528,6 +1528,13 @@ class e_form function select_open($name, $options = array()) { + if(!is_array($options)) parse_str($options, $options); + + if(vartrue($options['size']) && !is_numeric($options['size'])) + { + $options['class'] .= " input-".$options['size']; + unset($options['size']); // don't include in html 'size='. + } $options = $this->format_options('select', $name, $options); return "