mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
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:
parent
dea1dc77fb
commit
41aff9c2f6
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue