diff --git a/www/lib/CoreLibs/Combined/ArrayHandler.php b/www/lib/CoreLibs/Combined/ArrayHandler.php index 8619f348..a7cb5f1f 100644 --- a/www/lib/CoreLibs/Combined/ArrayHandler.php +++ b/www/lib/CoreLibs/Combined/ArrayHandler.php @@ -208,7 +208,9 @@ class ArrayHandler $prev_depth = 0; foreach ($recursive as $key => $value) { if ($prev_depth > $recursive->getDepth()) { - $key_path = []; + // remove all trailing to ne depth + $diff = $prev_depth - $recursive->getDepth(); + array_splice($key_path, -$diff, $diff); } $prev_depth = $recursive->getDepth(); if ($flat === false) {