We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c9d8ee commit c527499Copy full SHA for c527499
app/code/core/Mage/ConfigurableSwatches/Helper/Productimg.php
@@ -376,7 +376,7 @@ public function filterImageInGallery($product, $image)
376
377
if (!isset($this->_productImageFilters[$product->getId()])) {
378
$mapping = call_user_func_array('array_merge_recursive', array_values($product->getChildAttributeLabelMapping()));
379
- $filters = array_unique($mapping['labels']);
+ $filters = isset($mapping['labels']) ? array_unique($mapping['labels']) : [];
380
$filters = array_merge($filters, array_map(function ($label) {
381
return $label . Mage_ConfigurableSwatches_Helper_Productimg::SWATCH_LABEL_SUFFIX;
382
}, $filters));
0 commit comments