From f57fc45d6f509b7f0b0d402fb050064d2bf6c14f Mon Sep 17 00:00:00 2001 From: phpnut Date: Thu, 25 Oct 2007 02:53:54 +0000 Subject: [PATCH] Fixes #3455, Secondary model array in model data causes corruption git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5898 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/libs/model/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }