Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit afa4dd0dee55c8b0d9533b8dde3a65aae3e08a34 1 parent 3b8990f
Miguel Angel fitorec authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/Cake/Model/Model.php
3  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);
Please sign in to comment.
Something went wrong with that request. Please try again.