Skip to content

Commit f33522f

Browse files
authored
fix ArgumentCountError: array_merge_recursive() (#1402)
fix ArgumentCountError: array_merge_recursive() does not accept unknown named parameters
1 parent 7f84c55 commit f33522f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/core/Mage/ConfigurableSwatches/Helper/Productimg.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ public function filterImageInGallery($product, $image)
343343
}
344344

345345
if (!isset($this->_productImageFilters[$product->getId()])) {
346-
$mapping = call_user_func_array("array_merge_recursive", $product->getChildAttributeLabelMapping());
346+
$mapping = call_user_func_array("array_merge_recursive", array_values($product->getChildAttributeLabelMapping()));
347347
$filters = array_unique($mapping['labels']);
348348
$filters = array_merge($filters, array_map(function ($label) {
349349
return $label . Mage_ConfigurableSwatches_Helper_Productimg::SWATCH_LABEL_SUFFIX;

0 commit comments

Comments
 (0)