conditions cleanup

This commit is contained in:
Alexander Makarov
2013-04-16 00:17:15 +04:00
parent c49222f799
commit 8f7757a25c
2 changed files with 2 additions and 2 deletions

View File

@ -728,7 +728,7 @@ class Html
if (!isset($options['size'])) {
$options['size'] = 4;
}
if (isset($options['multiple']) && $options['multiple'] && substr($name, -2) !== '[]') {
if (!empty($options['multiple']) && substr($name, -2) !== '[]') {
$name .= '[]';
}
$options['name'] = $name;