diff --git a/pandora_console/include/db/mysql.php b/pandora_console/include/db/mysql.php index f0be4a78aa..f265fd6ec3 100644 --- a/pandora_console/include/db/mysql.php +++ b/pandora_console/include/db/mysql.php @@ -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);