Fixed the querys with the string '0'.

This commit is contained in:
mdtrooper 2015-03-23 19:18:00 +01:00
parent b4e74e8502
commit 2a832e5758
1 changed files with 1 additions and 1 deletions

View File

@ -548,7 +548,7 @@ function mysql_db_format_array_where_clause_sql ($values, $join = 'AND', $prefix
$query .= sprintf ('%s IN ("%s")', $field, implode ('", "', $value));
}
else {
if (empty($value)) {
if ($value === "") {
//Search empty string
$query .= sprintf ("%s = ''", $field);
}