diff --git a/lib/Service/ReverseGeoCoderService.php b/lib/Service/ReverseGeoCoderService.php index da48688a7..41099c46d 100644 --- a/lib/Service/ReverseGeoCoderService.php +++ b/lib/Service/ReverseGeoCoderService.php @@ -68,6 +68,10 @@ private function getPlaceNameForPlaceId(int $placeId): string { } public function arePlacesEnabled(): bool { + if (!$this->config->getSystemValueBool('has_internet_connection', true)) { + /* This feature cannot work without internet access */ + return false; + } return ($this->config->getAppValue(Application::APP_ID, self::CONFIG_DISABLE_PLACES, '0') !== '1'); }