Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fusiondirectory
fd-plugins
Commits
04e54284
Unverified
Commit
04e54284
authored
Mar 25, 2019
by
Côme Chilliet
Browse files
🚑
fix(argonaut) Fix crash when dns plugin is missing
issue #5935
parent
0f28b875
Changes
1
Hide whitespace changes
Inline
Side-by-side
argonaut/admin/systems/services/argonaut/class_argonautDNSConfig.inc
View file @
04e54284
...
...
@@ -149,7 +149,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
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment