Added missing return in Model::invalidFields()

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4413 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-02-02 18:07:56 +00:00
parent cca419c124
commit b64e27d9fe

View file

@ -1641,7 +1641,7 @@ class Model extends Overloadable {
} }
if (empty($data) || !$this->beforeValidate()) { if (empty($data) || !$this->beforeValidate()) {
$this->validationErrors; return $this->validationErrors;
} }
if (!isset($this->validate) || empty($this->validate)) { if (!isset($this->validate) || empty($this->validate)) {