mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-04-20 20:13:40 +03:00
If a template contains NS-records, do not try to add them again. They were already added while creating the zone.
This commit is contained in:
parent
888e7bad42
commit
5c6c9e1847
1 changed files with 1 additions and 0 deletions
|
@ -330,6 +330,7 @@ case "create":
|
|||
$api->savezone($zone->export());
|
||||
|
||||
foreach ($template['records'] as $record) {
|
||||
if ($record['type'] == 'NS') continue;
|
||||
$name = $record['name'] != '' ? join(Array($record['name'],'.',$zonename)) : $zonename;
|
||||
$record['content'] = str_replace("[zonename]", $zonename, $record['content']);
|
||||
$zone->addRecord($name, $record['type'], $record['content']);
|
||||
|
|
Loading…
Add table
Reference in a new issue