Update peruser.php

This commit is contained in:
Laurent Destailleur 2023-02-06 00:04:19 +01:00 committed by GitHub
parent d2a6d89fca
commit a0f8a2454b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -917,7 +917,7 @@ while ($currentdaytoshow < $lastdaytoshow) {
}
if ($user->socid > 0) {
// External users should see only contacts of their company
$sql .= " AND fk_soc=" . $socid;
$sql .= " AND fk_soc = ".((int) $user->socid);
}
//print $sql;