Skip to content

Commit

Permalink
Merge pull request #48075 from nextcloud/backport/48050/stable29
Browse files Browse the repository at this point in the history
  • Loading branch information
provokateurin authored Oct 2, 2024
2 parents 8393158 + ca5b22a commit 7385092
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 @@ -275,6 +275,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 7385092

Please sign in to comment.