diff --git a/cake/libs/model/model.php b/cake/libs/model/model.php index 252b9dc66..129f50226 100644 --- a/cake/libs/model/model.php +++ b/cake/libs/model/model.php @@ -842,7 +842,7 @@ class Model extends Overloadable { unset ($this->validationErrors[$x]); } - if ($n == $this->name || is_array($y)) { + if ($n === $this->name) { if ($x === $this->primaryKey) { $this->id = $y; }