Skip to content

Commit

Permalink
Merge pull request #65 from lusimeon/fix-search-points-empty
Browse files Browse the repository at this point in the history
Fix points search if no points available
  • Loading branch information
BrownSim authored Aug 5, 2024
2 parents dd3681d + 02caa2e commit c2a86e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MondialRelay/Api/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function WSI4PointRelaisRecherche(array $payload): array
throw new ApiException();
}

$details = $response->WSI4_PointRelais_RechercheResult->PointsRelais->PointRelais_Details;
$details = $response->WSI4_PointRelais_RechercheResult->PointsRelais->PointRelais_Details ?? [];

if (!is_array($details)) {
$details = [$details];
Expand Down

0 comments on commit c2a86e2

Please sign in to comment.