Selaa lähdekoodia

Removed warning

Laurent Destailleur 4 vuotta sitten
vanhempi
commit
906e030bfb
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      htdocs/societe/tpl/linesalesrepresentative.tpl.php

+ 1 - 1
htdocs/societe/tpl/linesalesrepresentative.tpl.php

@@ -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'];