diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-10-24 21:59:09 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-10-24 21:59:09 +0000 |
commit | 73dbd93d62b401994e223854f4ccb944276360f1 (patch) | |
tree | d7d4f74c2d405c4a4e7acfb31d89b0dbc01e3f59 | |
parent | b4f8a42a350136d642a8bf51f6579a2ffea5a660 (diff) | |
download | pfsense-packages-73dbd93d62b401994e223854f4ccb944276360f1.tar.gz pfsense-packages-73dbd93d62b401994e223854f4ccb944276360f1.tar.bz2 pfsense-packages-73dbd93d62b401994e223854f4ccb944276360f1.zip |
Check both variables
-rw-r--r-- | packages/tinydns/new_zone_wizard.xml | 6 |
1 files 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"; |