Navigation Menu

Skip to content

Commit

Permalink
Strict truthiness check
Browse files Browse the repository at this point in the history
  • Loading branch information
Walther Lalk committed Nov 6, 2014
1 parent 5534a6e commit 603f4ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/View/Helper/FormHelper.php
Expand Up @@ -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';
}

Expand Down

0 comments on commit 603f4ee

Please sign in to comment.