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.
2 parents 6578e6a + e8acb08 commit d8bd717Copy full SHA for d8bd717
app/code/Magento/Catalog/Model/ResourceModel/Product.php
@@ -656,11 +656,7 @@ public function getProductsIdsBySkus(array $productSkuList)
656
*/
657
private function getResultKey(string $sku, array $productSkuList): string
658
{
659
- $key = array_search(strtolower($sku), array_map('strtolower', $productSkuList));
660
- if ($key !== false) {
661
- $sku = $productSkuList[$key];
662
- }
663
- return $sku;
+ return in_array(strtolower($sku), array_map('strtolower', $productSkuList)) ? $sku : '';
664
}
665
666
/**
0 commit comments