Commit 6e57f407 authored by Franco Fichtner's avatar Franco Fichtner

dns: do not store empty recordtype #1457

parent 2acd4595
...@@ -95,10 +95,13 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -95,10 +95,13 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$rfc2136['server'] = $pconfig['server']; $rfc2136['server'] = $pconfig['server'];
$rfc2136['usetcp'] = !empty($pconfig['usetcp']); $rfc2136['usetcp'] = !empty($pconfig['usetcp']);
$rfc2136['usepublicip'] = !empty($pconfig['usepublicip']); $rfc2136['usepublicip'] = !empty($pconfig['usepublicip']);
$rfc2136['recordtype'] = $_POST['recordtype'];
$rfc2136['interface'] = $pconfig['interface']; $rfc2136['interface'] = $pconfig['interface'];
$rfc2136['descr'] = $pconfig['descr']; $rfc2136['descr'] = $pconfig['descr'];
if (!empty($pconfig['recordtype'])) {
$rfc2136['recordtype'] = $pconfig['recordtype'];
}
if (isset($id)) { if (isset($id)) {
$a_rfc2136[$id] = $rfc2136; $a_rfc2136[$id] = $rfc2136;
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment