From e5a4890d297a5584ec80e043ac545bf470be4aa3 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 6 Jul 2023 18:57:18 -0600 Subject: [PATCH] Provisioning templates isset is better than !empty --- .../templates/provision/grandstream/grp261x/{$mac}.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/templates/provision/grandstream/grp261x/{$mac}.xml b/resources/templates/provision/grandstream/grp261x/{$mac}.xml index 8043f38b29..901218655e 100644 --- a/resources/templates/provision/grandstream/grp261x/{$mac}.xml +++ b/resources/templates/provision/grandstream/grp261x/{$mac}.xml @@ -2849,7 +2849,7 @@ {$key_types[$row.device_key_type]} - {if !empty($row.device_key_line)}Account{$row.device_key_line}{/if} + {if isset($row.device_key_line)}Account{$row.device_key_line}{/if} @@ -2884,7 +2884,7 @@ {$key_types[$row.device_key_type]} - {if !empty($row.device_key_line)}Account{$row.device_key_line}{/if} + {if isset($row.device_key_line)}Account{$row.device_key_line}{/if} {$row.device_key_label} @@ -2977,7 +2977,7 @@ {$programmable_key_types[$row.device_key_type]} - {if !empty($row.device_key_line)}Account{$row.device_key_line}{/if} + {if isset($row.device_key_line)}Account{$row.device_key_line}{/if} @@ -3037,7 +3037,7 @@ {$key_types[$row.device_key_type]} - {if !empty($row.device_key_line)}Account{$row.device_key_line}{/if} + {if isset($row.device_key_line)}Account{$row.device_key_line}{/if} {$row.device_key_label}