Permalink
Browse files

Check if bool operators in find conditions are empty.

  • Loading branch information...
1 parent 4ebe754 commit 9c7f357029bd7526b30ddfe993f1c3afe4e7373d Nicolas committed Nov 17, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/Cake/Model/Datasource/DboSource.php
@@ -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] . ')';

0 comments on commit 9c7f357

Please sign in to comment.