mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Check if bool operators in find conditions are empty.
This commit is contained in:
parent
4ebe754076
commit
9c7f357029
1 changed files with 4 additions and 0 deletions
|
@ -2464,6 +2464,10 @@ class DboSource extends DataSource {
|
|||
$not = 'NOT ';
|
||||
}
|
||||
|
||||
if (empty($value)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (empty($value[1])) {
|
||||
if ($not) {
|
||||
$out[] = $not . '(' . $value[0] . ')';
|
||||
|
|
Loading…
Reference in a new issue