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:
nate 2006-12-22 16:26:54 +00:00
parent b5a4e298fb
commit 4c586b7893

View file

@ -289,6 +289,7 @@ class FormHelper extends AppHelper {
} }
} }
$out = '';
$div = true; $div = true;
if (isset($options['div'])) { if (isset($options['div'])) {
$div = $options['div']; $div = $options['div'];
@ -319,10 +320,8 @@ class FormHelper extends AppHelper {
} }
$out = $this->label(null, $labelText, $label); $out = $this->label(null, $labelText, $label);
$label = $labelText; $label = $labelText;
} elseif ($label != false) { } elseif ($label !== false) {
$out = $this->label(null, $label); $out = $this->label(null, $label);
} else {
$out = '';
} }
$error = null; $error = null;