From 2acd4595cc8ec1fa3052d6e8ac8907e56e332927 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Fri, 10 Mar 2017 14:09:43 +0100 Subject: [PATCH] dns: small follow-up for #1457 --- src/www/services_rfc2136_edit.php | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/www/services_rfc2136_edit.php b/src/www/services_rfc2136_edit.php index 119f88c03..9a17cb24a 100644 --- a/src/www/services_rfc2136_edit.php +++ b/src/www/services_rfc2136_edit.php @@ -46,6 +46,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { } else { $pconfig['enable'] = true; } + $pconfig['host'] = isset($id) && !empty($a_rfc2136[$id]['host']) ? $a_rfc2136[$id]['host'] : null; $pconfig['ttl'] = isset($id) &&!empty($a_rfc2136[$id]['ttl']) ? $a_rfc2136[$id]['ttl'] : 60; $pconfig['keydata'] = isset($id) &&!empty($a_rfc2136[$id]['keydata']) ? $a_rfc2136[$id]['keydata'] : null; @@ -54,12 +55,11 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { $pconfig['server'] = isset($id) &&!empty($a_rfc2136[$id]['server']) ? $a_rfc2136[$id]['server'] : null; $pconfig['interface'] = isset($id) &&!empty($a_rfc2136[$id]['interface']) ? $a_rfc2136[$id]['interface'] : null; $pconfig['descr'] = isset($id) &&!empty($a_rfc2136[$id]['descr']) ? $a_rfc2136[$id]['descr'] : null; + $pconfig['recordtype'] = isset($id) && !empty($a_rfc2136[$id]['recordtype']) ? $a_rfc2136[$id]['recordtype'] : null; $pconfig['usetcp'] = isset($a_rfc2136[$id]['usetcp']); $pconfig['usepublicip'] = isset($a_rfc2136[$id]['usepublicip']); - $pconfig['recordtype'] = isset($id) && !empty($a_rfc2136[$id]['recordtype']) ? $a_rfc2136[$id]['recordtype'] : null; - } elseif ($_SERVER['REQUEST_METHOD'] === 'POST') { if (isset($_POST['id']) && !empty($a_rfc2136[$_POST['id']])) { $id = $_POST['id']; @@ -172,6 +172,17 @@ include("head.inc"); + + + + />   + />   + /> + + + () @@ -192,7 +203,7 @@ include("head.inc"); />   />   - /> + /> @@ -224,17 +235,6 @@ include("head.inc"); - - - - />   - />   - /> - - -