From cfc393d97a73a98d93ae3880c0619fbc555530ef Mon Sep 17 00:00:00 2001 From: poslop Date: Mon, 22 Dec 2025 12:26:37 -0600 Subject: [PATCH] index check in rows loop --- gen_pc_sidecar.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gen_pc_sidecar.php b/gen_pc_sidecar.php index edcc969..16d07b6 100644 --- a/gen_pc_sidecar.php +++ b/gen_pc_sidecar.php @@ -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);