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
This commit is contained in:
phpnut 2007-01-29 10:40:19 +00:00
parent 4d9ea2cc63
commit bfc5168358

View file

@ -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;