If we don't have a soa_edit_api for this zone yet, set it to our default

This commit is contained in:
Mark Schouten 2016-10-25 11:10:22 +02:00
parent 77192d84b1
commit 94e0d22bf2

View file

@ -182,7 +182,7 @@ class Zone {
$ret['kind'] = $this->kind; $ret['kind'] = $this->kind;
$ret['name'] = $this->name; $ret['name'] = $this->name;
$ret['soa_edit'] = $this->soa_edit; $ret['soa_edit'] = $this->soa_edit;
$ret['soa_edit_api'] = $this->soa_edit_api; $ret['soa_edit_api'] = ($this->soa_edit_api == "") ? $defaults['soa_edit_api'] : $this->soa_edit_api;
if ($this->zone) { if ($this->zone) {
$ret['zone'] = $this->zone; $ret['zone'] = $this->zone;
return $ret; return $ret;