Commit 8f7757a2 by Alexander Makarov

conditions cleanup

parent c49222f7
...@@ -728,7 +728,7 @@ class Html ...@@ -728,7 +728,7 @@ class Html
if (!isset($options['size'])) { if (!isset($options['size'])) {
$options['size'] = 4; $options['size'] = 4;
} }
if (isset($options['multiple']) && $options['multiple'] && substr($name, -2) !== '[]') { if (!empty($options['multiple']) && substr($name, -2) !== '[]') {
$name .= '[]'; $name .= '[]';
} }
$options['name'] = $name; $options['name'] = $name;
......
...@@ -64,7 +64,7 @@ class ActiveForm extends Widget ...@@ -64,7 +64,7 @@ class ActiveForm extends Widget
$models = array($models); $models = array($models);
} }
$showAll = isset($options['showAll']) && $options['showAll']; $showAll = !empty($options['showAll']);
$lines = array(); $lines = array();
/** @var $model Model */ /** @var $model Model */
foreach ($models as $model) { foreach ($models as $model) {
......
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