Commit 96990c8d by Qiang Xue

Merge pull request #2012 from creocoder/listbox-fix2

BaseHtml::listBox() incorrect array_key_exists() usage fix
parents 018a3a13 e5b30731
......@@ -718,7 +718,7 @@ class BaseHtml
*/
public static function listBox($name, $selection = null, $items = [], $options = [])
{
if (!array_key_exists($options, 'size')) {
if (!array_key_exists('size', $options)) {
$options['size'] = 4;
}
if (!empty($options['multiple']) && substr($name, -2) !== '[]') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment