File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -449,7 +449,7 @@ function zoneRediscover() {
449449
450450 function notifySlave ($ data ) {
451451 global $ app ;
452-
452+
453453 $ pdns_control = $ this ->find_pdns_control ();
454454 if ( $ pdns_control != false ) {
455455 $ app ->system ->exec_safe ($ pdns_control . ' notify ? ' , rtrim ($ data ["new " ]["origin " ],". " ));
@@ -458,7 +458,7 @@ function notifySlave($data) {
458458
459459 function fetchFromMaster ($ data ) {
460460 global $ app ;
461-
461+
462462 $ pdns_control = $ this ->find_pdns_control ();
463463 if ( $ pdns_control != false ) {
464464 $ app ->system ->exec_safe ($ pdns_control . ' retrieve ? ' , rtrim ($ data ["new " ]["origin " ],". " ));
@@ -502,7 +502,7 @@ function handle_dnssec($data) {
502502 }
503503
504504 // If DNSSEC is wanted, enable it
505- if ($ data ['new ' ]['dnssec_wanted ' ] === 'Y ' && $ data ['old ' ]['dnssec_wanted ' ] === 'N ' ) {
505+ if ($ data ['new ' ]['dnssec_wanted ' ] === 'Y ' && ( is_null ( $ data ['old ' ]['dnssec_wanted ' ]) || $ data [ ' old ' ][ ' dnssec_wanted ' ] === 'N ' ) ) {
506506 $ this ->soa_dnssec_create ($ data );
507507 }
508508 }
You can’t perform that action at this time.
0 commit comments