mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-24 18:58:46 +02:00
Fixed error, when octopart search got no results
This commit is contained in:
parent
f7cea1100c
commit
4824a82c3f
1 changed files with 1 additions and 1 deletions
|
@ -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']);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue