summaryrefslogtreecommitdiffstats
path: root/dns_wizard
diff options
context:
space:
mode:
Diffstat (limited to 'dns_wizard')
-rw-r--r--dns_wizard/Bind.pm9
1 files changed, 3 insertions, 6 deletions
diff --git a/dns_wizard/Bind.pm b/dns_wizard/Bind.pm
index 4f71f299..19513b77 100644
--- a/dns_wizard/Bind.pm
+++ b/dns_wizard/Bind.pm
@@ -112,13 +112,10 @@ $o->{pages} = {
} elsif ($o->{var}{wiz_level} == 1) {
return 'interface';
} elsif ($o->{var}{wiz_level} == 3) {
- if (-f $sys_wizard_dns) {
- return 'addhost';
- } else {
- return 'error_notmaster';
- }
+ return -f $sys_wizard_dns ? 'addhost' : 'error_notmaster';
} elsif ($o->{var}{wiz_level} == 4) {
- if (-f $sys_wizard_dns) { return 'removehost' } else { return 'error_notmaster' } }
+ return -f $sys_wizard_dns ? 'removehost' : 'error_notmaster';
+ }
},
data => [
{ label => '', val => \$o->{var}{wiz_level}, type => 'list', list => [ sort keys %level ], format => sub { $level{$_[0]} } },