Fix. Sync building `$provision` array in all places. (#2226)

This commit is contained in:
Alexey Melnichuk 2016-12-02 22:11:47 +03:00 committed by FusionPBX
parent 9d592f3318
commit 4498f4c9d9
2 changed files with 4 additions and 0 deletions

View File

@ -224,6 +224,8 @@
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);
}

View File

@ -968,6 +968,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);
}