mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
IcingaDependencyForm: check for null
This commit is contained in:
parent
ef29ffd2af
commit
d042a3943a
@ -192,7 +192,7 @@ class IcingaDependencyForm extends DirectorObjectForm
|
||||
$parentHost = $dependency->get('parent_host');
|
||||
if ($parentHost === null) {
|
||||
$parentHostVar = $dependency->get('parent_host_var');
|
||||
if (\strlen($parentHostVar) > 0) {
|
||||
if ($parentHostVar !== null && \strlen($parentHostVar) > 0) {
|
||||
$parentHost = '$' . $dependency->get('parent_host_var') . '$';
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user