Use FormHelper->label instead of HtmlHelper->useTag

Implementing suggested fix by mark_story
This commit is contained in:
aread22 2013-09-04 13:32:36 -04:00
parent 4ab1c8c225
commit cb056a5cbe

View file

@ -1520,11 +1520,7 @@ class FormHelper extends AppHelper {
);
if ($label) {
if (is_array($label)) {
$optTitle = $this->label($tagName, $optTitle, $label);
} else {
$optTitle = $this->Html->useTag('label', $tagName, '', $optTitle);
}
$optTitle = $this->label($tagName, $optTitle, is_array($label) ? $label : null);
}
if (is_array($between)) {