From a162489563d3db27bfc7597f5204841715d47fcc Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 3 Dec 2016 22:04:04 -0500 Subject: Fix regression in checkbox form helper --- app/Helper/FormHelper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Helper/FormHelper.php b/app/Helper/FormHelper.php index 57094688..9eabd724 100644 --- a/app/Helper/FormHelper.php +++ b/app/Helper/FormHelper.php @@ -147,8 +147,8 @@ class FormHelper extends Base $attributes['checked'] = 'checked'; } - foreach ($attributes as $attribute => $value) { - $htmlAttributes .= sprintf('%s="%s"', $attribute, $this->helper->text->e($value)); + foreach ($attributes as $attribute => $attributeValue) { + $htmlAttributes .= sprintf('%s="%s"', $attribute, $this->helper->text->e($attributeValue)); } return sprintf( -- cgit v1.2.3