aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorprovokateurin <kate@provokateurin.de>2024-09-15 22:39:18 +0200
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2024-09-16 09:34:19 +0000
commit23a612ee5e987695b1d4e33f8ecb2bcf4d0038e9 (patch)
treebe8e5d2f6a75d5a86077fb2987992dc7d10f122c /apps
parent32866bc7eefbc33722cbbee7a2550f2ac868da7b (diff)
downloadnextcloud-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.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 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];
}