Fix regression in checkbox form helper

This commit is contained in:
Frederic Guillot 2016-12-03 22:04:04 -05:00
parent e0aeb4ca1b
commit a162489563
No known key found for this signature in database
GPG Key ID: 92D77191BA7FBC99
1 changed files with 2 additions and 2 deletions

View File

@ -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(