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

:ambulance: fix(dns): Avoid PHP errors in DNS plugin detected by tests

When creating a zone a non-set var was used as an array

issue #5716
Showing with 2 additions and 0 deletions
+2 -0
...@@ -336,6 +336,8 @@ class DnsRecordsAttribute extends DialogOrderedArrayAttribute ...@@ -336,6 +336,8 @@ class DnsRecordsAttribute extends DialogOrderedArrayAttribute
} }
} }
$this->initialReverseZones = $reverseZones; $this->initialReverseZones = $reverseZones;
} else {
$this->initialReverseZones = array();
} }
sort($this->value); sort($this->value);
} }
......
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