mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-25 06:44:37 +02:00
parent
6fcb16ced8
commit
ef537160f7
@ -245,7 +245,13 @@ class IcingaObjectGroups implements Iterator, Countable, IcingaConfigRenderer
|
||||
|
||||
public function toConfigString()
|
||||
{
|
||||
return c::renderKeyValue('groups', c::renderArray(array_keys($this->groups)));
|
||||
$groups = array_keys($this->groups);
|
||||
|
||||
if (empty($groups)) {
|
||||
return '';
|
||||
}
|
||||
|
||||
return c::renderKeyValue('groups', c::renderArray($groups));
|
||||
}
|
||||
|
||||
public function __toString()
|
||||
|
Loading…
x
Reference in New Issue
Block a user