Fixed error, when octopart search got no results

This commit is contained in:
Jan Böhmer 2023-07-31 01:00:34 +02:00
parent f7cea1100c
commit 4824a82c3f

View file

@ -300,7 +300,7 @@ class OctopartProvider implements InfoProviderInterface
$tmp = [];
foreach ($result['data']['supSearch']['results'] as $p) {
foreach ($result['data']['supSearch']['results'] ?? [] as $p) {
$tmp[] = $this->partResultToDTO($p['part']);
}