Fix escaping

This commit is contained in:
Laurent Destailleur 2024-05-03 03:30:57 +02:00
parent 584e54c130
commit 9289d356d7

View file

@ -312,7 +312,7 @@ class FormListWebPortal
$sql .= " WHERE 1 = 1";
}
// filter on logged third-party
$sql .= " AND t.fk_soc = " . $socid;
$sql .= " AND t.fk_soc = " . ((int) $socid);
foreach ($search as $key => $val) {
if (array_key_exists($key, $object->fields)) {