1
This commit is contained in:
+1
-1
@@ -645,7 +645,7 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, T
|
||||
if (empty($rule)) return TRUE;
|
||||
$validate = $this->resolve($rule);
|
||||
if (!$validate->validation()) {
|
||||
return $this->addError('$validate->getError()', 'mysql');
|
||||
return $this->addError($validate->getError(), 'mysql');
|
||||
} else {
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user