From aa7e9047066248623c397bc036eae99cd20995ae Mon Sep 17 00:00:00 2001 From: Djamel Chibane <20502173+devletech@users.noreply.github.com> Date: Fri, 29 Nov 2024 17:17:48 +0100 Subject: [PATCH] Multidimensional Array used. --- library/Episciences/Paper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Episciences/Paper.php b/library/Episciences/Paper.php index 68a097c8..146c227e 100644 --- a/library/Episciences/Paper.php +++ b/library/Episciences/Paper.php @@ -5027,7 +5027,7 @@ public function getClassifications(bool $isSerialized = false): array $classificationName = $classification['classification_name']; if ($classificationName !== msc2020::$classificationName || $classificationName !== jel::$classificationName) { $current = ($classificationName === msc2020::$classificationName) ? new msc2020($classification) : new jel($classification); - $classificationCollection[$classificationName] = !$isSerialized ? $current : $current->jsonSerialize(false); + $classificationCollection[$classificationName][] = !$isSerialized ? $current : $current->jsonSerialize(false); } }