Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove unnecessary condition in Model::getID().
  • Loading branch information
majna committed Jan 17, 2012
1 parent 826374e commit e947df3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/Cake/Model/Model.php
Expand Up @@ -3234,10 +3234,6 @@ public function getID($list = 0) {
return $this->id;
}

if (empty($this->id)) {
return false;
}

if (isset($this->id[$list]) && !empty($this->id[$list])) {
return $this->id[$list];
} elseif (isset($this->id[$list])) {
Expand Down

0 comments on commit e947df3

Please sign in to comment.