aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorKate <26026535+provokateurin@users.noreply.github.com>2024-09-16 13:14:23 +0200
committerGitHub <noreply@github.com>2024-09-16 13:14:23 +0200
commite4074b6d54f699bb0f2453744179c757a85a9495 (patch)
tree16e5e8375b0b65898c9a7ac3764c3432fcfae901 /apps
parent0714e14ed75202a59ba7991af5337f099983c9e6 (diff)
parent23a612ee5e987695b1d4e33f8ecb2bcf4d0038e9 (diff)
downloadnextcloud-server-e4074b6d54f699bb0f2453744179c757a85a9495.tar.gz
nextcloud-server-e4074b6d54f699bb0f2453744179c757a85a9495.zip
Merge pull request #48076 from nextcloud/backport/48050/stable30
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];
}