mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-09-26 03:09:11 +02:00
parent
66ff070c77
commit
ad825f9c58
@ -436,7 +436,11 @@ class Sync
|
|||||||
$newVars[$varName] = $val;
|
$newVars[$varName] = $val;
|
||||||
} else {
|
} else {
|
||||||
if ($prop === 'import') {
|
if ($prop === 'import') {
|
||||||
|
if (is_array($val)) {
|
||||||
|
$imports = array_merge($imports, $val);
|
||||||
|
} elseif (!is_null($val)) {
|
||||||
$imports[] = $val;
|
$imports[] = $val;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$newProps[$prop] = $val;
|
$newProps[$prop] = $val;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user