Code cleanup

This commit is contained in:
Mark van Driel 2017-03-08 23:19:37 +01:00
parent c8aefeb495
commit 25d597910f

View file

@ -1088,8 +1088,7 @@ class FormHelper extends AppHelper {
if (!empty($divOptions['tag'])) { if (!empty($divOptions['tag'])) {
$tag = $divOptions['tag']; $tag = $divOptions['tag'];
unset($divOptions['tag']); unset($divOptions['tag'], $divOptions['errorClass']);
unset($divOptions['errorClass']);
$output = $this->Html->tag($tag, $output, $divOptions); $output = $this->Html->tag($tag, $output, $divOptions);
} }
return $output; return $output;