mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Use FormHelper->label instead of HtmlHelper->useTag
Implementing suggested fix by mark_story
This commit is contained in:
parent
4ab1c8c225
commit
cb056a5cbe
1 changed files with 1 additions and 5 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue