Permalink
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...
1 parent 5af1835 commit 704188e2b9316be53f56d10fe3e642f89f62b753 AD7six committed Jan 15, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 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);

0 comments on commit 704188e

Please sign in to comment.