Solving the small defect in the array of behaviors(actsAs)

This commit is contained in:
Fitorec 2011-12-05 12:10:32 -06:00
parent 3b8990ffca
commit afa4dd0dee

View file

@ -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);