IcingaObjectGroups: Fix typo in set() method

This commit is contained in:
Alexander Fuhr 2015-06-24 14:55:47 +02:00
parent fc2352fb1e
commit 33ea3a9b34

View File

@ -82,10 +82,10 @@ class IcingaObjectGroups implements Iterator, Countable, IcingaConfigRenderer
$class = $this->getGroupClass(); $class = $this->getGroupClass();
foreach ($group as $g) { foreach ($group as $g) {
if ($group instanceof $class) { if ($g instanceof $class) {
$new[] = $group->object_name; $new[] = $g->object_name;
} else { } else {
$new[] = $group; $new[] = $g;
} }
} }
sort($existing); sort($existing);