Skip to content

Commit

Permalink
Fix db type error, when hostgroup is accidentially interpreted as int…
Browse files Browse the repository at this point in the history
…eger

fixes #2821
  • Loading branch information
cschra authored and Thomas-Gelf committed Oct 19, 2023
1 parent 9a9799e commit aa31b37
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions library/Director/Objects/IcingaObjectGroups.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,10 @@ public function add($group, $onError = 'fail')
return $this;
}

if (is_int($group)) {
$group = (string) $group;
}

/** @var IcingaObjectGroup $class */
$class = $this->getGroupClass();

Expand Down

0 comments on commit aa31b37

Please sign in to comment.