mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 19:38:26 +00:00
Fixing default label rendering in FormHelper::input()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4121 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
b5a4e298fb
commit
4c586b7893
1 changed files with 2 additions and 3 deletions
|
@ -289,6 +289,7 @@ class FormHelper extends AppHelper {
|
|||
}
|
||||
}
|
||||
|
||||
$out = '';
|
||||
$div = true;
|
||||
if (isset($options['div'])) {
|
||||
$div = $options['div'];
|
||||
|
@ -319,10 +320,8 @@ class FormHelper extends AppHelper {
|
|||
}
|
||||
$out = $this->label(null, $labelText, $label);
|
||||
$label = $labelText;
|
||||
} elseif ($label != false) {
|
||||
} elseif ($label !== false) {
|
||||
$out = $this->label(null, $label);
|
||||
} else {
|
||||
$out = '';
|
||||
}
|
||||
|
||||
$error = null;
|
||||
|
|
Loading…
Reference in a new issue