Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove unnecessary condition in Model::getID().

  • Loading branch information...
commit e947df36a5ae40d5bc17cca613dd998fc28b841c 1 parent 826374e
Ivan Majnaric majna authored
Showing with 0 additions and 4 deletions.
  1. +0 −4 lib/Cake/Model/Model.php
4 lib/Cake/Model/Model.php
View
@@ -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])) {
Please sign in to comment.
Something went wrong with that request. Please try again.