Skip to content

Commit

Permalink
Don't make variables we never use.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jan 29, 2016
1 parent 3b5a71d commit 4b1be44
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Cake/Model/Datasource/DboSource.php
Expand Up @@ -2727,8 +2727,7 @@ public function conditionKeysToString($conditions, $quoteValues = true, Model $M
} elseif (is_array($value) && !empty($value) && !$valueInsert) {
$keys = array_keys($value);
if ($keys === array_values($keys)) {
$count = count($value);
if ($count === 1 && !preg_match('/\s+(?:NOT|IN|\!=)$/', $key)) {
if (count($value) === 1 && !preg_match('/\s+(?:NOT|IN|\!=)$/', $key)) {
$data = $this->_quoteFields($key) . ' = (';
if ($quoteValues) {
if ($Model !== null) {
Expand Down

0 comments on commit 4b1be44

Please sign in to comment.