Update commonobject.class.php

This commit is contained in:
Laurent Destailleur 2021-10-16 19:06:50 +02:00 committed by GitHub
parent 5ef681ef91
commit bbe867a7a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9169,9 +9169,9 @@ abstract class CommonObject
if ($key == 'customsql') {
$sqlwhere[] = $value;
} elseif (strpos($value, '%') === false) {
$sqlwhere[] = $key.' IN ('.$this->db->sanitize($this->db->escape($value)).')';
$sqlwhere[] = $key." IN (".$this->db->sanitize($this->db->escape($value)).")";
} else {
$sqlwhere[] = $key.' LIKE \'%'.$this->db->escape($value).'%\'';
$sqlwhere[] = $key." LIKE '%".$this->db->escape($value)."%'";
}
}
}