From 603f4ee01735f2e8e3c2283540199b4bba70ded7 Mon Sep 17 00:00:00 2001 From: Walther Lalk Date: Thu, 6 Nov 2014 15:10:16 +0200 Subject: [PATCH] Strict truthiness check --- src/View/Helper/FormHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'; }