mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
restore previous (erroneous ?) behaviour
This commit is contained in:
parent
67af8b37db
commit
35c2a7ef31
1 changed files with 3 additions and 1 deletions
|
@ -1869,7 +1869,9 @@ class Model extends Object implements CakeEventListener {
|
|||
}
|
||||
}
|
||||
|
||||
$success = $this->data;
|
||||
if (!empty($this->data)) {
|
||||
$success = $this->data;
|
||||
}
|
||||
|
||||
$this->_clearCache();
|
||||
$this->validationErrors = array();
|
||||
|
|
Loading…
Reference in a new issue