diff --git a/htdocs/comm/action/peruser.php b/htdocs/comm/action/peruser.php index e0e6e9ff004..9448ea0b77b 100644 --- a/htdocs/comm/action/peruser.php +++ b/htdocs/comm/action/peruser.php @@ -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;