mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Forcing array in Model::invalidFields(), fixes #4362
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6592 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
c286a7293f
commit
0ca3915668
1 changed files with 2 additions and 0 deletions
|
@ -2073,6 +2073,8 @@ class Model extends Overloadable {
|
|||
|
||||
if (isset($data[$this->alias])) {
|
||||
$data = $data[$this->alias];
|
||||
} elseif (!is_array($data)) {
|
||||
$data = array();
|
||||
}
|
||||
|
||||
$Validation =& Validation::getInstance();
|
||||
|
|
Loading…
Reference in a new issue