mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
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
This commit is contained in:
parent
588f92ca31
commit
53296d975c
1 changed files with 1 additions and 1 deletions
|
@ -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)),
|
||||
|
|
Loading…
Reference in a new issue