Verified Commit 89d735e5 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

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

issue #5935
parent 880d4fbf
No related merge requests found
Showing with 5 additions and 1 deletion
+5 -1
......@@ -148,7 +148,11 @@ class argonautDNSConfig extends simpleService
{
global $config;
$attributesInfo = $this->getAttributesInfo();
$zones = objects::ls('dnsZone', NULL, NULL, '', TRUE);
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