diff --git a/lib/Cake/Model/Datasource/DboSource.php b/lib/Cake/Model/Datasource/DboSource.php index c0a380d4cb9..25d186bca1d 100644 --- a/lib/Cake/Model/Datasource/DboSource.php +++ b/lib/Cake/Model/Datasource/DboSource.php @@ -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) {