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}