Adding fix for Ticket #2055.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4576 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-03-04 09:33:21 +00:00
parent dea1dc77fb
commit 41aff9c2f6

View file

@ -1649,7 +1649,7 @@ class Model extends Overloadable {
trigger_error(__('(Model::invalidFields) Parameter usage is deprecated, set the $data property instead'), E_USER_WARNING);
}
if (empty($data) || !$this->beforeValidate()) {
if (!$this->beforeValidate()) {
return $this->validationErrors;
}