diff options
Diffstat (limited to 'dns_wizard')
-rw-r--r-- | dns_wizard/Bind.pm | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/dns_wizard/Bind.pm b/dns_wizard/Bind.pm index 3bd71e8b..4f71f299 100644 --- a/dns_wizard/Bind.pm +++ b/dns_wizard/Bind.pm @@ -108,12 +108,16 @@ $o->{pages} = { }, post => sub { if ($o->{var}{wiz_level} == 2) { - return 'slave' } - 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' } } - elsif ($o->{var}{wiz_level} == 4) { + return 'slave'; + } 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'; + } + } elsif ($o->{var}{wiz_level} == 4) { if (-f $sys_wizard_dns) { return 'removehost' } else { return 'error_notmaster' } } }, data => [ |