FIX : cast int

This commit is contained in:
Gauthier PC portable 024 2021-05-18 09:01:55 +02:00
parent f9afe7e81a
commit 078fc892a2

View File

@ -288,7 +288,7 @@ if (!$user->rights->societe->client->voir && empty($socid)) {
$sql .= " AND s.rowid = sc.fk_soc AND sc.fk_user = ".$user->id;
}
if ($socid) {
$sql .= " AND s.rowid = ".$socid;
$sql .= " AND s.rowid = ".((int) $socid);
}
if ($sall) {
$sql .= natural_search(array_keys($fieldstosearchall), $sall);