From 73dbd93d62b401994e223854f4ccb944276360f1 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 24 Oct 2008 21:59:09 +0000 Subject: Check both variables --- packages/tinydns/new_zone_wizard.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/tinydns/new_zone_wizard.xml b/packages/tinydns/new_zone_wizard.xml index 55b41614..afcf0381 100644 --- a/packages/tinydns/new_zone_wizard.xml +++ b/packages/tinydns/new_zone_wizard.xml @@ -130,7 +130,7 @@ $changed = true; } - if($_POST['domainname']) { + if($_POST['domainname'] and $_POST['secondarynameserver']) { $tmp = array(); $tmp['hostname'] = $_POST['domainname']; $tmp['recordtype'] = "SOA"; @@ -140,7 +140,7 @@ $changed = true; } - if($_POST['firstarecordhostname']) { + if($_POST['firstarecordhostname'] and $_POST['firstarecordipaddress']) { $tmp = array(); $tmp['hostname'] = $_POST['firstarecordhostname']; $tmp['recordtype'] = "A"; @@ -150,7 +150,7 @@ $changed = true; } - if($_POST['secondarecordiphostname']) { + if($_POST['secondarecordiphostname'] and $_POST['secondarecordipaddress']) { $tmp = array(); $tmp['hostname'] = $_POST['secondarecordiphostname']; $tmp['recordtype'] = "A"; -- cgit v1.2.3