diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2024-09-16 11:31:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-16 11:31:13 +0200 |
commit | 52f4b88f8d0581e3ec8e59854b78bd006ab0f80f (patch) | |
tree | 3f4b2164948765f384db3ead3dd84838160b57e3 /apps | |
parent | c228c6208896e0e0b04c03e142c1faa2926d5fc5 (diff) | |
parent | 51d523a6a3d6478b9f88d3a14e10829c9c12bf79 (diff) | |
download | nextcloud-server-52f4b88f8d0581e3ec8e59854b78bd006ab0f80f.tar.gz nextcloud-server-52f4b88f8d0581e3ec8e59854b78bd006ab0f80f.zip |
Merge pull request #48050 from nextcloud/fix/weather_status/search-address-offline-errors
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 6aee18c0618..1ffb3e5cff2 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]; } |