We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c869481 commit 2fe4cceCopy full SHA for 2fe4cce
src/QueryBuilder.php
@@ -361,10 +361,10 @@ private function prepareConditions($where): array
361
$field = $this->prepareField($cond[0]);
362
$value = $cond[1];
363
364
- if (strtolower($value) == 'is null') {
+ if (is_string($value) && strtolower($value) == 'is null') {
365
$operator = 'IS NULL';
366
$sql .= "({$field} {$operator})";
367
- } else if (strtolower($value) == 'is not null') {
+ } else if (is_string($value) && strtolower($value) == 'is not null') {
368
$operator = 'IS NOT NULL';
369
370
} else if (is_array($value)) {
0 commit comments