Skip to content

Commit 4e36ffb

Browse files
author
Till Brehm
committed
Merge branch '6350-skip-render-empty-zone' into 'develop'
Skip rendering and reloading bind if there are no records, fixes #6350 Closes #6350 See merge request ispconfig/ispconfig3!1611
2 parents fa9019a + 661fac2 commit 4e36ffb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

server/plugins-available/bind_plugin.inc.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,10 @@ function soa_update($event_name, $data) {
323323
}
324324
}
325325
}
326+
else {
327+
$app->log("DNS zone[".$zone['origin']."] has no records yet, skip...", LOGLEVEL_DEBUG);
328+
return;
329+
}
326330
$tpl->setLoop('zones', $records);
327331

328332
$filename = $dns_config['bind_zonefiles_dir'].'/' . $this->zone_file_prefix() . str_replace("/", "_", substr($zone['origin'], 0, -1));

0 commit comments

Comments
 (0)