Docker: fix obsolete php functionality for php7

This commit is contained in:
Eric Schultz
2016-10-18 15:03:17 -05:00
parent b16cd54502
commit 977ebda520

View File

@@ -204,8 +204,7 @@ function postToXML($post, $setOwnership = false) {
for ($i = 0; $i < count($post["confName"]); $i++) {
$Type = $post['confType'][$i];
$config = $xml->addChild('Config');
$config->{0} = xml_encode($post['confValue'][$i]);
$config = $xml->addChild('Config', $post['confValue'][$i]);
$config['Name'] = xml_encode($post['confName'][$i]);
$config['Target'] = xml_encode($post['confTarget'][$i]);
$config['Default'] = xml_encode($post['confDefault'][$i]);
@@ -620,7 +619,7 @@ if ($_GET['rmTemplate']) {
##
if ($_GET['xmlTemplate']) {
list($xmlType, $xmlTemplate) = split(':', urldecode($_GET['xmlTemplate']));
list($xmlType, $xmlTemplate) = explode(':', urldecode($_GET['xmlTemplate']));
if (is_file($xmlTemplate)) {
$xml = xmlToVar($xmlTemplate);
$templateName = $xml["Name"];