IcingaObjectModification: loop with an array

This commit is contained in:
Thomas Gelf 2021-08-23 08:53:22 +02:00
parent 2897415a1f
commit 5002f7a6bf

View File

@ -102,7 +102,7 @@ class IcingaObjectModification
{
// TODO: dots in varnames -> throw or escape?
if (isset($properties[$property])) {
foreach ($properties[$property] as $key => $value) {
foreach ((array) $properties[$property] as $key => $value) {
$properties["$property.$key"] = $value;
}
unset($properties[$property]);