Skip to content

Commit

Permalink
Merge pull request #48050 from nextcloud/fix/weather_status/search-ad…
Browse files Browse the repository at this point in the history
…dress-offline-errors
  • Loading branch information
skjnldsv authored Sep 16, 2024
2 parents c228c62 + 51d523a commit 52f4b88
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/weather_status/lib/Service/WeatherStatusService.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,9 @@ private function searchForAddress(string $address): array {
];
$url = 'https://nominatim.openstreetmap.org/search';
$results = $this->requestJSON($url, $params);
if ($results['error'] !== null) {
return $results;
}
if (count($results) > 0) {
return $results[0];
}
Expand Down

0 comments on commit 52f4b88

Please sign in to comment.