mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
FIX : cast int
This commit is contained in:
parent
f9afe7e81a
commit
078fc892a2
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user