Skip to content

Commit

Permalink
correcting shorthand if else statement
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7996 3807eeeb-6ff5-0310-8944-8be069107fe0
  • Loading branch information
AD7six committed Jan 15, 2009
1 parent 5af1835 commit 704188e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cake/libs/model/datasources/dbo_source.php
Expand Up @@ -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);
Expand Down

0 comments on commit 704188e

Please sign in to comment.