Permalink
Browse files

optimization, break early

  • Loading branch information...
sebastienbarre committed Mar 25, 2017
1 parent 02a946b commit e285df4f827b8eda57990a33cbb8610b4ed2bb91
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/Cake/Model/CakeSchema.php
@@ -617,6 +617,7 @@ protected function _columns(&$Obj) {
foreach ($fields as $value) {
if (isset($value['key']) && $value['key'] === 'primary') {
$hasPrimaryAlready = true;
break;
}
}

0 comments on commit e285df4

Please sign in to comment.