mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Solving the small defect in the array of behaviors(actsAs)
This commit is contained in:
parent
3b8990ffca
commit
afa4dd0dee
1 changed files with 2 additions and 1 deletions
|
@ -676,7 +676,8 @@ class Model extends Object {
|
|||
|
||||
if (is_subclass_of($this, 'AppModel')) {
|
||||
$merge = array('findMethods');
|
||||
if ($this->actsAs !== null || $this->actsAs !== false) {
|
||||
#if (!empty($this->actsAs)) { //Another possible solution
|
||||
if ($this->actsAs !== null && $this->actsAs !== false) {
|
||||
$merge[] = 'actsAs';
|
||||
}
|
||||
$parentClass = get_parent_class($this);
|
||||
|
|
Loading…
Reference in a new issue