Remove unnecessary condition in Model::getID().

This commit is contained in:
Majna 2012-01-17 21:57:40 +01:00
parent 826374e57c
commit e947df36a5

View file

@ -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])) {