Skip to content

Commit

Permalink
fixes fatal error in line 2879
Browse files Browse the repository at this point in the history
  • Loading branch information
darxmac committed Feb 16, 2014
1 parent faf67c8 commit d9df606
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/View/Helper/FormHelper.php
Expand Up @@ -2869,14 +2869,15 @@ protected function _initInputField($field, $options = []) {

if (isset($options['value']) && !isset($options['val'])) {
$options['val'] = $options['value'];
unset($options['value']);
}
if (!isset($options['val'])) {
$options['val'] = $context->val($field);
}
if (!isset($options['val']) && isset($options['default'])) {
$options['val'] = $options['default'];
unset($options['default']);
}
unset($options['value'], $options['default']);

$options += (array)$context->attributes($field);

Expand Down

0 comments on commit d9df606

Please sign in to comment.