From bfc516835841cd59eb14c14d3e227e6c30145d2c Mon Sep 17 00:00:00 2001 From: phpnut Date: Mon, 29 Jan 2007 10:40:19 +0000 Subject: [PATCH] Adding fix for Notice: Undefined variable: data git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4345 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/libs/view/helpers/form.php | 1 + 1 file changed, 1 insertion(+) diff --git a/cake/libs/view/helpers/form.php b/cake/libs/view/helpers/form.php index cab348d56..3d408ca58 100644 --- a/cake/libs/view/helpers/form.php +++ b/cake/libs/view/helpers/form.php @@ -74,6 +74,7 @@ class FormHelper extends AppHelper { * @return string An formatted opening FORM tag. */ function create($model = null, $options = array()) { + $data = array('fields' => '','key' => '', 'validates' => ''); if (is_array($model) && empty($options)) { $options = $model; $model = null;