Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

correcting shorthand if else statement

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7996 3807eeeb-6ff5-0310-8944-8be069107fe0
  • Loading branch information...
commit 704188e2b9316be53f56d10fe3e642f89f62b753 1 parent 5af1835
@AD7six AD7six authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  cake/libs/model/datasources/dbo_source.php
View
3  cake/libs/model/datasources/dbo_source.php
@@ -1824,8 +1824,9 @@ function conditionKeysToString($conditions, $quoteValues = true, $model = null)
$count = count($value);
if ($count === 1) {
$data = $this->name($key) . ' = (';
- } else
+ } else {
$data = $this->name($key) . ' IN (';
+ }
if ($quoteValues || strpos($value[0], '-!') !== 0) {
if (is_object($model)) {
$columnType = $model->getColumnType($key);
Please sign in to comment.
Something went wrong with that request. Please try again.