Removed warning

This commit is contained in:
Laurent Destailleur 2020-09-20 21:25:18 +02:00
parent cda101238d
commit 906e030bfb

View File

@ -49,7 +49,7 @@ if ($action == 'editsalesrepresentatives') {
} else {
$listsalesrepresentatives = $object->getSalesRepresentatives($user);
$nbofsalesrepresentative = count($listsalesrepresentatives);
if ($nbofsalesrepresentative > 0) {
if ($nbofsalesrepresentative > 0 && is_array($listsalesrepresentatives)) {
$userstatic = new User($db);
foreach ($listsalesrepresentatives as $val) {
$userstatic->id = $val['id'];