From aa31b37fd184228d3397c512ae8fc175f2d82d39 Mon Sep 17 00:00:00 2001 From: Christian Schramm Date: Thu, 19 Oct 2023 12:49:08 +0200 Subject: [PATCH] Fix db type error, when hostgroup is accidentially interpreted as integer fixes #2821 --- library/Director/Objects/IcingaObjectGroups.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/library/Director/Objects/IcingaObjectGroups.php b/library/Director/Objects/IcingaObjectGroups.php index 8bef1b19..f4288310 100644 --- a/library/Director/Objects/IcingaObjectGroups.php +++ b/library/Director/Objects/IcingaObjectGroups.php @@ -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();