aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2024-09-16 11:31:13 +0200
committerGitHub <noreply@github.com>2024-09-16 11:31:13 +0200
commit52f4b88f8d0581e3ec8e59854b78bd006ab0f80f (patch)
tree3f4b2164948765f384db3ead3dd84838160b57e3 /apps
parentc228c6208896e0e0b04c03e142c1faa2926d5fc5 (diff)
parent51d523a6a3d6478b9f88d3a14e10829c9c12bf79 (diff)
downloadnextcloud-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.php3
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];
}