mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Remove unnecessary condition in Model::getID().
This commit is contained in:
parent
826374e57c
commit
e947df36a5
1 changed files with 0 additions and 4 deletions
|
@ -3234,10 +3234,6 @@ class Model extends Object implements CakeEventListener {
|
||||||
return $this->id;
|
return $this->id;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($this->id)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isset($this->id[$list]) && !empty($this->id[$list])) {
|
if (isset($this->id[$list]) && !empty($this->id[$list])) {
|
||||||
return $this->id[$list];
|
return $this->id[$list];
|
||||||
} elseif (isset($this->id[$list])) {
|
} elseif (isset($this->id[$list])) {
|
||||||
|
|
Loading…
Reference in a new issue