Commit e5b30731 by Alexander Kochetov

BaseHtml::listBox() incorrect array_key_exists() usage fix

parent f55ce7e0
...@@ -718,7 +718,7 @@ class BaseHtml ...@@ -718,7 +718,7 @@ class BaseHtml
*/ */
public static function listBox($name, $selection = null, $items = [], $options = []) public static function listBox($name, $selection = null, $items = [], $options = [])
{ {
if (!array_key_exists($options, 'size')) { if (!array_key_exists('size', $options)) {
$options['size'] = 4; $options['size'] = 4;
} }
if (!empty($options['multiple']) && substr($name, -2) !== '[]') { 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