Fix db type error, when hostgroup is accidentially interpreted as integer

fixes #2821
This commit is contained in:
Christian Schramm 2023-10-19 12:49:08 +02:00 committed by Thomas Gelf
parent 9a9799e491
commit aa31b37fd1

View File

@ -183,6 +183,10 @@ class IcingaObjectGroups implements Iterator, Countable, IcingaConfigRenderer
return $this;
}
if (is_int($group)) {
$group = (string) $group;
}
/** @var IcingaObjectGroup $class */
$class = $this->getGroupClass();