Update provision.php

Add ability to use provision settings with type boolean and numeric.
This commit is contained in:
FusionPBX
2016-11-23 22:44:38 -07:00
committed by GitHub
parent 3dd0f69b03
commit 7809b63e72

View File

@@ -281,6 +281,8 @@ include "root.php";
foreach($_SESSION['provision'] as $key=>$val) {
if (strlen($val['var']) > 0) { $value = $val['var']; }
if (strlen($val['text']) > 0) { $value = $val['text']; }
if (strlen($val['boolean']) > 0) { $value = $val['boolean']; }
if (strlen($val['numeric']) > 0) { $value = $val['numeric']; }
if (strlen($value) > 0) { $provision[$key] = $value; }
unset($value);
}