diff --git a/src/View/Helper/FormHelper.php b/src/View/Helper/FormHelper.php index 3fb4196b..3abd351b 100644 --- a/src/View/Helper/FormHelper.php +++ b/src/View/Helper/FormHelper.php @@ -207,10 +207,12 @@ public function input($fieldName, array $options = []) switch ($options['type']) { case 'checkbox': + if (!isset($options['inline'])) { + $options['inline'] = $this->checkClasses($options['type'] . '-inline', (array)$options['label']); + } + if ($options['inline']) { $options['label'] = $this->injectClasses($options['type'] . '-inline', (array)$options['label']); - } else { - $options['inline'] = $this->checkClasses($options['type'] . '-inline', (array)$options['label']); } break; case 'radio':