Skip to content

Commit dccb491

Browse files
authored
Fix bug in enabling dnssec for existing domains (hestiacp#3000)
1 parent ba26d23 commit dccb491

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/edit/dns/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@
141141
$v_dnssec = 'no';
142142
$restart_dns = 'yes';
143143
}
144-
144+
145145
// Change domain dnssec
146-
if (($_POST['v_dnssec'] == 'yes' && $v_dnssec == 'no') && (empty($_SESSION['error_msg']))) {
146+
if (($_POST['v_dnssec'] == 'yes' && $v_dnssec !== 'yes') && (empty($_SESSION['error_msg']))) {
147147
exec(HESTIA_CMD."v-change-dns-domain-dnssec ".$user." ".$v_domain." 'yes'", $output, $return_var);
148148
check_return_code($return_var, $output);
149149
unset($output);

0 commit comments

Comments
 (0)