mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-15 06:39:33 +00:00
Rückgabewert ist schon ein Array deshalb kein toArray
This commit is contained in:
parent
7de735eb1e
commit
351078fb43
1 changed files with 1 additions and 3 deletions
|
|
@ -129,9 +129,7 @@ class BuerklinProvider implements InfoProviderInterface
|
||||||
*/
|
*/
|
||||||
private function queryDetail(string $id): PartDetailDTO
|
private function queryDetail(string $id): PartDetailDTO
|
||||||
{
|
{
|
||||||
$response = $this->makeAPICall('/products', ['sku' => $id]);
|
$arr = $this->makeAPICall('/products', ['sku' => $id]);
|
||||||
|
|
||||||
$arr = $response->toArray();
|
|
||||||
$product = $arr['result'] ?? null;
|
$product = $arr['result'] ?? null;
|
||||||
|
|
||||||
if ($product === null) {
|
if ($product === null) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue