From b5a4e298fb0a54bafe36a3db3bd5283b8218b8d0 Mon Sep 17 00:00:00 2001 From: dho Date: Fri, 22 Dec 2006 07:38:31 +0000 Subject: [PATCH] Fixing "undefined variable" problem in FormHelper::input git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4120 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/libs/view/helpers/form.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cake/libs/view/helpers/form.php b/cake/libs/view/helpers/form.php index 37bc3580b..979eac6e9 100644 --- a/cake/libs/view/helpers/form.php +++ b/cake/libs/view/helpers/form.php @@ -321,6 +321,8 @@ class FormHelper extends AppHelper { $label = $labelText; } elseif ($label != false) { $out = $this->label(null, $label); + } else { + $out = ''; } $error = null;