Verified Commit 28769c53 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:ambulance: fix(argonaut) Fix crash when dns plugin is missing

issue #5935
Showing with 5 additions and 1 deletion
+5 -1
...@@ -148,7 +148,11 @@ class argonautDNSConfig extends simpleService ...@@ -148,7 +148,11 @@ class argonautDNSConfig extends simpleService
{ {
global $config; global $config;
$attributesInfo = $this->getAttributesInfo(); $attributesInfo = $this->getAttributesInfo();
$zones = objects::ls('dnsZone', NULL, NULL, '', TRUE); try {
$zones = objects::ls('dnsZone', NULL, NULL, '', TRUE);
} catch (NonExistingObjectTypeException $e) {
$zones = [];
}
if (!empty($zones)) { if (!empty($zones)) {
$attributes = $attributesInfo['slave']['attrs'][0]->attribute->attributes; $attributes = $attributesInfo['slave']['attrs'][0]->attribute->attributes;
$attributes[0] = new SelectAttribute( $attributes[0] = new SelectAttribute(
......
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