Skip to content

Commit

Permalink
fmDNS - #141 - Fix zone reloads when config build is required
Browse files Browse the repository at this point in the history
  • Loading branch information
WillyXJ committed Jul 30, 2014
1 parent 7a7508d commit 6aefbe4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions server/fm-modules/fmDNS/classes/class_zones.php
Expand Up @@ -362,7 +362,7 @@ function update() {
}
$sql_edit .= "domain_reload='no'";

/* Set the server_build_config flag for existing servers */
/** Set the server_build_config flag for existing servers */
if (getSOACount($id) && getNSCount($id)) {
setBuildUpdateConfigFlag(getZoneServers($id), 'yes', 'build');
}
Expand All @@ -376,11 +376,14 @@ function update() {
/** Return if there are no changes */
if (!$fmdb->rows_affected) return true;

/* Set the server_build_config flag for new servers */
/** Set the server_build_config flag for new servers */
if (getSOACount($id) && getNSCount($id)) {
setBuildUpdateConfigFlag(getZoneServers($id), 'yes', 'build');
}

/** Delete associated records from fm_{$__FM_CONFIG['fmDNS']['prefix']}track_builds */
basicDelete('fm_' . $__FM_CONFIG['fmDNS']['prefix'] . 'track_builds', $id, 'domain_id', false);

addLogEntry($log_message);
return true;
}
Expand Down

0 comments on commit 6aefbe4

Please sign in to comment.