Skip to content
Permalink
Browse files

Check if bool operators in find conditions are empty.

  • Loading branch information...
Nicolas
Nicolas committed Nov 17, 2012
1 parent 4ebe754 commit 9c7f357029bd7526b30ddfe993f1c3afe4e7373d
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.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.