From 5002f7a6bffa2ed25aa33da05dca27e68ffba49a Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 23 Aug 2021 08:53:22 +0200 Subject: [PATCH] IcingaObjectModification: loop with an array --- library/Director/Db/Branch/IcingaObjectModification.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Director/Db/Branch/IcingaObjectModification.php b/library/Director/Db/Branch/IcingaObjectModification.php index eabf4aba..6916343b 100644 --- a/library/Director/Db/Branch/IcingaObjectModification.php +++ b/library/Director/Db/Branch/IcingaObjectModification.php @@ -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]);