Skip to content

Commit

Permalink
Check if bool operators in find conditions are empty.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas committed Nov 17, 2012
1 parent 4ebe754 commit 9c7f357
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Cake/Model/Datasource/DboSource.php
Expand Up @@ -2464,6 +2464,10 @@ public function conditionKeysToString($conditions, $quoteValues = true, $model =
$not = 'NOT ';
}

if (empty($value)) {
continue;
}

if (empty($value[1])) {
if ($not) {
$out[] = $not . '(' . $value[0] . ')';
Expand Down

0 comments on commit 9c7f357

Please sign in to comment.