2
0
forked from Wavyzz/dolibarr

Clean code

This commit is contained in:
Laurent Destailleur
2021-04-26 19:12:23 +02:00
parent 14baec95dc
commit d138e7410b
37 changed files with 208 additions and 63 deletions

View File

@@ -234,7 +234,7 @@ if (!$user->rights->societe->client->voir && !$socid) {
}
$sql .= " WHERE f.fk_soc = s.rowid";
if ($socid > 0) {
$sql .= ' AND s.rowid = '.$socid;
$sql .= ' AND s.rowid = '.((int) $socid);
}
if (!$user->rights->societe->client->voir && !$socid) {
$sql .= " AND s.rowid = sc.fk_soc AND sc.fk_user = ".$user->id;