Unverified Commit 04e54284 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

🚑 fix(argonaut) Fix crash when dns plugin is missing

issue #5935
parent 0f28b875
......@@ -149,7 +149,11 @@ class argonautDNSConfig extends simpleService
{
global $config;
$attributesInfo = $this->getAttributesInfo();
try {
$zones = objects::ls('dnsZone', NULL, NULL, '', TRUE);
} catch (NonExistingObjectTypeException $e) {
$zones = array();
}
if (!empty($zones)) {
$attributes = $attributesInfo['slave']['attrs'][0]->attribute->attributes;
$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