From 33ea3a9b345a6847becb07f8559f9b518f296a0e Mon Sep 17 00:00:00 2001 From: Alexander Fuhr Date: Wed, 24 Jun 2015 14:55:47 +0200 Subject: [PATCH] IcingaObjectGroups: Fix typo in set() method --- library/Director/Objects/IcingaObjectGroups.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/Director/Objects/IcingaObjectGroups.php b/library/Director/Objects/IcingaObjectGroups.php index 7f2f1222..0394573a 100644 --- a/library/Director/Objects/IcingaObjectGroups.php +++ b/library/Director/Objects/IcingaObjectGroups.php @@ -82,10 +82,10 @@ class IcingaObjectGroups implements Iterator, Countable, IcingaConfigRenderer $class = $this->getGroupClass(); foreach ($group as $g) { - if ($group instanceof $class) { - $new[] = $group->object_name; + if ($g instanceof $class) { + $new[] = $g->object_name; } else { - $new[] = $group; + $new[] = $g; } } sort($existing);