diff options
author | provokateurin <kate@provokateurin.de> | 2024-09-15 22:39:18 +0200 |
---|---|---|
committer | provokateurin <kate@provokateurin.de> | 2024-09-15 22:40:02 +0200 |
commit | 51d523a6a3d6478b9f88d3a14e10829c9c12bf79 (patch) | |
tree | 4fc4851d81f968499af74d25e704d75b010bdc74 | |
parent | 4281ce6fa1bb8235426099d720734d2394bec203 (diff) | |
download | nextcloud-server-fix/weather_status/search-address-offline-errors.tar.gz nextcloud-server-fix/weather_status/search-address-offline-errors.zip |
fix(weather_status): Fix search address errors when offlinefix/weather_status/search-address-offline-errors
Signed-off-by: provokateurin <kate@provokateurin.de>
-rw-r--r-- | apps/weather_status/lib/Service/WeatherStatusService.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/weather_status/lib/Service/WeatherStatusService.php b/apps/weather_status/lib/Service/WeatherStatusService.php index da0ee855e85..005b9b4df2f 100644 --- a/apps/weather_status/lib/Service/WeatherStatusService.php +++ b/apps/weather_status/lib/Service/WeatherStatusService.php @@ -257,6 +257,9 @@ class WeatherStatusService { ]; $url = 'https://nominatim.openstreetmap.org/search'; $results = $this->requestJSON($url, $params); + if ($results['error'] !== null) { + return $results; + } if (count($results) > 0) { return $results[0]; } |