Removed warning
This commit is contained in:
parent
cda101238d
commit
906e030bfb
@ -49,7 +49,7 @@ if ($action == 'editsalesrepresentatives') {
|
|||||||
} else {
|
} else {
|
||||||
$listsalesrepresentatives = $object->getSalesRepresentatives($user);
|
$listsalesrepresentatives = $object->getSalesRepresentatives($user);
|
||||||
$nbofsalesrepresentative = count($listsalesrepresentatives);
|
$nbofsalesrepresentative = count($listsalesrepresentatives);
|
||||||
if ($nbofsalesrepresentative > 0) {
|
if ($nbofsalesrepresentative > 0 && is_array($listsalesrepresentatives)) {
|
||||||
$userstatic = new User($db);
|
$userstatic = new User($db);
|
||||||
foreach ($listsalesrepresentatives as $val) {
|
foreach ($listsalesrepresentatives as $val) {
|
||||||
$userstatic->id = $val['id'];
|
$userstatic->id = $val['id'];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user