Update provision.php

Allow provision variables of type boolean and numeric.
This commit is contained in:
FusionPBX
2016-11-23 22:42:46 -07:00
committed by GitHub
parent f2362aa7aa
commit df648b7b8b

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);
}