mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
ExtensibleSet: do not render empty arrays
This commit is contained in:
parent
69669909c2
commit
5da36490c8
@ -395,7 +395,10 @@ class ExtensibleSet
|
|||||||
{
|
{
|
||||||
$parts = array();
|
$parts = array();
|
||||||
|
|
||||||
if ($this->ownValues !== null) {
|
// TODO: It would be nice if we could use empty arrays to override
|
||||||
|
// inherited ones
|
||||||
|
// if ($this->ownValues !== null) {
|
||||||
|
if (!empty($this->ownValues)) {
|
||||||
$parts[] = c::renderKeyValue(
|
$parts[] = c::renderKeyValue(
|
||||||
$key,
|
$key,
|
||||||
$this->renderArray($this->ownValues),
|
$this->renderArray($this->ownValues),
|
||||||
@ -403,7 +406,7 @@ class ExtensibleSet
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! empty($this->plusValues)) {
|
if (!empty($this->plusValues)) {
|
||||||
$parts[] = c::renderKeyOperatorValue(
|
$parts[] = c::renderKeyOperatorValue(
|
||||||
$key,
|
$key,
|
||||||
'+=',
|
'+=',
|
||||||
@ -412,7 +415,7 @@ class ExtensibleSet
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! empty($this->minusValues)) {
|
if (!empty($this->minusValues)) {
|
||||||
$parts[] = c::renderKeyOperatorValue(
|
$parts[] = c::renderKeyOperatorValue(
|
||||||
$key,
|
$key,
|
||||||
'-=',
|
'-=',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user