diff options
author | provokateurin <kate@provokateurin.de> | 2024-09-15 22:39:18 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2024-09-16 09:34:19 +0000 |
commit | 23a612ee5e987695b1d4e33f8ecb2bcf4d0038e9 (patch) | |
tree | be8e5d2f6a75d5a86077fb2987992dc7d10f122c /apps | |
parent | 32866bc7eefbc33722cbbee7a2550f2ac868da7b (diff) | |
download | nextcloud-server-23a612ee5e987695b1d4e33f8ecb2bcf4d0038e9.tar.gz nextcloud-server-23a612ee5e987695b1d4e33f8ecb2bcf4d0038e9.zip |
fix(weather_status): Fix search address errors when offlinebackport/48050/stable30
Signed-off-by: provokateurin <kate@provokateurin.de>
Diffstat (limited to 'apps')
-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]; } |