From 53296d975cf0e85c928d38bdc325edfea9b2ac5a Mon Sep 17 00:00:00 2001 From: gwoo Date: Thu, 30 Oct 2008 00:11:32 +0000 Subject: [PATCH] adding patch for model text committed in [7799] git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7800 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 d59684be4..301c679b1 100644 --- a/cake/libs/model/model.php +++ b/cake/libs/model/model.php @@ -1234,7 +1234,7 @@ class Model extends Overloadable { $newData = $newValues = array(); - foreach ($data as $row) { + foreach ((array)$data as $row) { if (($isUUID && (strlen($row) == 36 || strlen($row) == 16)) || is_numeric($row)) { $values = array( $db->value($id, $this->getColumnType($this->primaryKey)),