mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
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:
parent
4d9ea2cc63
commit
bfc5168358
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue