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:
nate 2008-03-19 01:34:23 +00:00
parent c286a7293f
commit 0ca3915668

View file

@ -2073,6 +2073,8 @@ class Model extends Overloadable {
if (isset($data[$this->alias])) { if (isset($data[$this->alias])) {
$data = $data[$this->alias]; $data = $data[$this->alias];
} elseif (!is_array($data)) {
$data = array();
} }
$Validation =& Validation::getInstance(); $Validation =& Validation::getInstance();