From 07d106e44d9ae5440824d0d8d8135169fb34df9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Mon, 20 Jul 2026 00:02:13 +0200 Subject: [PATCH] Fixed exception in LCSCProvider --- src/Services/InfoProviderSystem/Providers/LCSCProvider.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Services/InfoProviderSystem/Providers/LCSCProvider.php b/src/Services/InfoProviderSystem/Providers/LCSCProvider.php index afe84aab..b3da3cda 100755 --- a/src/Services/InfoProviderSystem/Providers/LCSCProvider.php +++ b/src/Services/InfoProviderSystem/Providers/LCSCProvider.php @@ -151,7 +151,7 @@ class LCSCProvider implements BatchInfoProviderInterface, URLHandlerInfoProvider //If we get exact matches, use them if (!empty($arr['result']['exactMatchResult'])) { - $products = $arr['result']['a']; + $products = $arr['result']['exactMatchResult']; } else { //Otherwise fallback onto the third search endpoint, which has a worse data quality but is more likely to return results for vague search terms $response = $this->lcscClient->request('POST', self::ENDPOINT_URL."/search/third", [ 'headers' => [ @@ -170,6 +170,8 @@ class LCSCProvider implements BatchInfoProviderInterface, URLHandlerInfoProvider $products = $arr['result']['productList'] ?? []; } + $result = []; + foreach ($products as $product) { $result[] = $this->getPartDetail($product, $lightweight); }