diff --git a/src/View/Helper/FormHelper.php b/src/View/Helper/FormHelper.php index af13e1e88cb..b2874e59edf 100644 --- a/src/View/Helper/FormHelper.php +++ b/src/View/Helper/FormHelper.php @@ -958,7 +958,7 @@ public function input($fieldName, array $options = []) { } $nestedInput = isset($options['nestedInput']) ? $options['nestedInput'] : $nestedInput; - if ($nestedInput == true && $options['type'] === 'checkbox' && !array_key_exists('hiddenField', $options) && $label !== false) { + if ($nestedInput === true && $options['type'] === 'checkbox' && !array_key_exists('hiddenField', $options) && $label !== false) { $options['hiddenField'] = '_split'; }