index check in rows loop
This commit is contained in:
1 parent
56c9bbb224
commit
cfc393d97a
1 file changed
+2
-1
+2
-1
@@ -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