From 883b9f14ce7b7130e2cacbf6d74ab6b1287797c6 Mon Sep 17 00:00:00 2001 From: Flyingmana Date: Mon, 18 Jan 2021 16:23:43 +0100 Subject: [PATCH] fix ArgumentCountError: array_merge_recursive() fix ArgumentCountError: array_merge_recursive() does not accept unknown named parameters --- app/code/core/Mage/ConfigurableSwatches/Helper/Productimg.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/core/Mage/ConfigurableSwatches/Helper/Productimg.php b/app/code/core/Mage/ConfigurableSwatches/Helper/Productimg.php index 8d203b0f79c..e40e870f91a 100644 --- a/app/code/core/Mage/ConfigurableSwatches/Helper/Productimg.php +++ b/app/code/core/Mage/ConfigurableSwatches/Helper/Productimg.php @@ -343,7 +343,7 @@ public function filterImageInGallery($product, $image) } if (!isset($this->_productImageFilters[$product->getId()])) { - $mapping = call_user_func_array("array_merge_recursive", $product->getChildAttributeLabelMapping()); + $mapping = call_user_func_array("array_merge_recursive", array_values($product->getChildAttributeLabelMapping())); $filters = array_unique($mapping['labels']); $filters = array_merge($filters, array_map(function ($label) { return $label . Mage_ConfigurableSwatches_Helper_Productimg::SWATCH_LABEL_SUFFIX;