Update ecmfiles.class.php

This commit is contained in:
Laurent Destailleur 2021-05-11 18:52:49 +02:00 committed by GitHub
parent db9c423794
commit 3aac68d65b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -530,9 +530,9 @@ class EcmFiles extends CommonObject
if (count($filter) > 0) {
foreach ($filter as $key => $value) {
if ($key == 't.src_object_id') {
$sqlwhere [] = $key.' = '.$this->db->escape($value);
$sqlwhere[] = $key.' = '.((int) $value);
} else {
$sqlwhere [] = $key.' LIKE \'%'.$this->db->escape($value).'%\'';
$sqlwhere[] = $key.' LIKE \'%'.$this->db->escape($value).'%\'';
}
}
}