Permalink
Browse files

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

  • Loading branch information...
1 parent 3b8990f commit afa4dd0dee55c8b0d9533b8dde3a65aae3e08a34 @fitorec fitorec committed Dec 5, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/Cake/Model/Model.php
View
@@ -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);

0 comments on commit afa4dd0

Please sign in to comment.