Merge pull request #2010 from creocoder/basehtml-listbox-size

BaseHtml::listBox() default size settings removed
This commit is contained in:
Qiang Xue
2014-01-16 19:25:21 -08:00

View File

@@ -718,7 +718,7 @@ class BaseHtml
*/
public static function listBox($name, $selection = null, $items = [], $options = [])
{
if (!isset($options['size'])) {
if (!array_key_exists($options, 'size')) {
$options['size'] = 4;
}
if (!empty($options['multiple']) && substr($name, -2) !== '[]') {