mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
fix in not null matching rule
This commit is contained in:
parent
fa35e6054c
commit
81e696a045
@ -766,7 +766,7 @@ function mysql_db_format_array_where_clause_sql($values, $join='AND', $prefix=fa
|
||||
|
||||
if ($value === null) {
|
||||
$not = (($negative === true) ? 'NOT' : '');
|
||||
$query .= sprintf('%s IS %s NULL', $field, $negative);
|
||||
$query .= sprintf('%s IS %s NULL', $field, $not);
|
||||
} else if (is_int($value) || is_bool($value)) {
|
||||
$not = (($negative === true) ? '!' : '');
|
||||
$query .= sprintf('%s %s= %d', $field, $not, $value);
|
||||
|
Loading…
x
Reference in New Issue
Block a user