aboutsummaryrefslogtreecommitdiffstats
path: root/packages/tinydns
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-10-24 21:59:09 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-10-24 21:59:09 +0000
commit73dbd93d62b401994e223854f4ccb944276360f1 (patch)
treed7d4f74c2d405c4a4e7acfb31d89b0dbc01e3f59 /packages/tinydns
parentb4f8a42a350136d642a8bf51f6579a2ffea5a660 (diff)
downloadpfsense-packages-73dbd93d62b401994e223854f4ccb944276360f1.tar.gz
pfsense-packages-73dbd93d62b401994e223854f4ccb944276360f1.tar.bz2
pfsense-packages-73dbd93d62b401994e223854f4ccb944276360f1.zip
Check both variables
Diffstat (limited to 'packages/tinydns')
-rw-r--r--packages/tinydns/new_zone_wizard.xml6
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";