mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Removing empty lines
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3480 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
fec633f227
commit
f08a4d7fa2
1 changed files with 4 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue