Commit 3cfea175 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Fixes #5670 Fixed PHP error in dnsZone

Showing with 4 additions and 4 deletions
+4 -4
......@@ -347,6 +347,10 @@ class DnsRecordsAttribute extends DialogOrderedArrayAttribute
{
$zoneDn = $this->getZoneDn();
$zoneName = $this->getZoneName();
if ($this->plugin instanceof dnsZone) {
$this->reverseZones = $this->plugin->reverseZones;
$this->sOARecord = $this->plugin->sOARecord;
}
/* Compute values into $nodes and $ptrs */
$nodes = array();
$ptrs = array();
......@@ -455,10 +459,6 @@ class DnsRecordsAttribute extends DialogOrderedArrayAttribute
}
}
if ($this->plugin instanceof dnsZone) {
$this->reverseZones = $this->plugin->reverseZones;
$this->sOARecord = $this->plugin->sOARecord;
}
$zoneNameWithFinalDot = $zoneName;
if (!preg_match('/\.$/', $zoneNameWithFinalDot)) {
$zoneNameWithFinalDot .= '.';
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment