Skip to content

Commit

Permalink
Solving the small defect in the array of behaviors(actsAs)
Browse files Browse the repository at this point in the history
  • Loading branch information
fitorec committed Dec 5, 2011
1 parent 3b8990f commit afa4dd0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Cake/Model/Model.php
Expand Up @@ -676,7 +676,8 @@ public function __construct($id = false, $table = null, $ds = null) {

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);
Expand Down

0 comments on commit afa4dd0

Please sign in to comment.