index check in rows loop
This commit is contained in:
@@ -134,7 +134,8 @@ foreach ($rows as $r) {
|
||||
$label = trim((string)($r['name'] ?? ''));
|
||||
$address = trim((string)($r['extension'] ?? ''));
|
||||
$type = trim((string)("normal"));
|
||||
if ($address === '') continue;
|
||||
|
||||
if ($address === '' && $index > 6) continue;
|
||||
|
||||
$attendant->setAttribute("attendant.resourceList.{$index}.address", $address);
|
||||
$attendant->setAttribute("attendant.resourceList.{$index}.label", $label);
|
||||
|
||||
Reference in New Issue
Block a user