aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorprovokateurin <kate@provokateurin.de>2024-09-15 22:39:18 +0200
committerBenjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>2024-10-02 09:23:26 +0200
commit3b986c952c5add17284bf759577afec3b2545eb1 (patch)
treebe8cff929b4677a4cf7b122ca9f6331a7fc0c365 /apps
parent547bc567d6f5fdbbbbda355f4e275e3396f61211 (diff)
downloadnextcloud-server-3b986c952c5add17284bf759577afec3b2545eb1.tar.gz
nextcloud-server-3b986c952c5add17284bf759577afec3b2545eb1.zip
fix(weather_status): Fix search address errors when offlinebackport/48050/stable28
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 ed416d09a87..0ecac2ea57b 100644
--- a/apps/weather_status/lib/Service/WeatherStatusService.php
+++ b/apps/weather_status/lib/Service/WeatherStatusService.php
@@ -275,6 +275,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];
}