mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
Fix db type error, when hostgroup is accidentially interpreted as integer
fixes #2821
This commit is contained in:
parent
9a9799e491
commit
aa31b37fd1
@ -183,6 +183,10 @@ class IcingaObjectGroups implements Iterator, Countable, IcingaConfigRenderer
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (is_int($group)) {
|
||||||
|
$group = (string) $group;
|
||||||
|
}
|
||||||
|
|
||||||
/** @var IcingaObjectGroup $class */
|
/** @var IcingaObjectGroup $class */
|
||||||
$class = $this->getGroupClass();
|
$class = $this->getGroupClass();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user