From 246d78588b27eeb9cb22bfd8a26f1226487830be Mon Sep 17 00:00:00 2001 From: Christopher Timm Date: Fri, 28 Jun 2024 16:27:12 +0200 Subject: [PATCH] Fix assignment of the merge result --- Classes/Common/MetsDocument.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Common/MetsDocument.php b/Classes/Common/MetsDocument.php index 69a368784..f1ae0971a 100644 --- a/Classes/Common/MetsDocument.php +++ b/Classes/Common/MetsDocument.php @@ -547,7 +547,7 @@ private function getSubentries($allSubentries, string $parentIndex, \DOMNode $pa if ($subentry['parent_index_name'] == $parentIndex) { $values = $domXPath->evaluate($subentry['xpath'], $parentNode); if (!empty($subentry['xpath']) && ($values)) { - array_merge($theseSubentries, $this->getSubentryValue($values, $subentry)); + $theseSubentries = array_merge($theseSubentries, $this->getSubentryValue($values, $subentry)); } // Set default value if applicable. if (