From f08a4d7fa26d123684efff0bf2e63aa86a82aca5 Mon Sep 17 00:00:00 2001 From: phpnut Date: Thu, 14 Sep 2006 18:50:33 +0000 Subject: [PATCH] Removing empty lines git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3480 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/libs/model/model.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cake/libs/model/model.php b/cake/libs/model/model.php index e88a7adbe..e5d10449f 100644 --- a/cake/libs/model/model.php +++ b/cake/libs/model/model.php @@ -920,7 +920,7 @@ class Model extends Overloadable { unset($v[$field]); } } - + foreach($v as $x => $y) { if ($this->hasField($x) && ($whitelist && in_array($x, $fieldList) || !$whitelist)) { $fields[] = $x; @@ -971,16 +971,16 @@ class Model extends Overloadable { } } else { if ($db->create($this, $fields, $values)) { - + if (!empty($this->belongsTo)) { foreach ($this->belongsTo as $parent => $assoc) { if (isset($assoc['counterCache']) && !empty($assoc['counterCache'])) { $parentObj =& $this->{$assoc['className']}; - + } } } - + $this->__insertID = $db->lastInsertId($this->tablePrefix . $this->table, $this->primaryKey); if (!$this->__insertID && $newID != null) {