mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-09 10:08:23 +00:00
Fix. Export valid values for settings in provision template. (#1685)
This commit is contained in:
committed by
FusionPBX
parent
41a3290999
commit
736519f3cd
@@ -223,7 +223,7 @@ The file name is fixed to `Account1_Extern.xml`.
|
||||
foreach($_SESSION['provision'] as $key=>$val) {
|
||||
if (strlen($val['var']) > 0) { $value = $val['var']; }
|
||||
if (strlen($val['text']) > 0) { $value = $val['text']; }
|
||||
$provision[$key] = $value;
|
||||
if (strlen($value) > 0) { $provision[$key] = $value; }
|
||||
unset($value);
|
||||
}
|
||||
|
||||
|
||||
@@ -289,10 +289,12 @@ include "root.php";
|
||||
}
|
||||
|
||||
//build the provision array
|
||||
$provision = Array();
|
||||
foreach($_SESSION['provision'] as $key=>$val) {
|
||||
if (strlen($val['var']) > 0) { $value = $val['var']; }
|
||||
if (strlen($val['text']) > 0) { $value = $val['text']; }
|
||||
$provision[$key] = $value;
|
||||
if (strlen($value) > 0) { $provision[$key] = $value; }
|
||||
unset($value);
|
||||
}
|
||||
|
||||
//check to see if the mac_address exists in devices
|
||||
|
||||
Reference in New Issue
Block a user