Update provision write() to match render()
This will ensure that anyone using TFTP still can use array template variables
This commit is contained in:
parent
c35143a935
commit
57c9bc7460
|
|
@ -1200,11 +1200,12 @@ include "root.php";
|
|||
$provision = array();
|
||||
if (is_array($_SESSION['provision'])) {
|
||||
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; }
|
||||
if (isset($val['var'])) { $value = $val['var']; }
|
||||
elseif (isset($val['text'])) { $value = $val['text']; }
|
||||
elseif (isset($val['boolean'])) { $value = $val['boolean']; }
|
||||
elseif (isset($val['numeric'])) { $value = $val['numeric']; }
|
||||
elseif (is_array($val) && !is_uuid($val['uuid'])) { $value = $val; }
|
||||
if (isset($value)) { $provision[$key] = $value; }
|
||||
unset($value);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue