diff options
author | Julien Veyssier <eneiluj@posteo.net> | 2020-09-25 10:42:30 +0200 |
---|---|---|
committer | Julien Veyssier <eneiluj@posteo.net> | 2020-09-28 09:58:49 +0200 |
commit | 5a6c0f64a673c4bbd872847bcfb7c90431ccb575 (patch) | |
tree | 9a82b99b5aab309bf8e3c7b2a92ca73e2841d852 /apps/weather_status/lib | |
parent | bd0b28d670057bc8982560e1fb994fe3ed299d7a (diff) | |
download | nextcloud-server-5a6c0f64a673c4bbd872847bcfb7c90431ccb575.tar.gz nextcloud-server-5a6c0f64a673c4bbd872847bcfb7c90431ccb575.zip |
avoid crash when unauthenticated users make weather-related requests, mention it in UI
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
Diffstat (limited to 'apps/weather_status/lib')
-rw-r--r-- | apps/weather_status/lib/Controller/WeatherStatusController.php | 2 | ||||
-rw-r--r-- | apps/weather_status/lib/Service/WeatherStatusService.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/weather_status/lib/Controller/WeatherStatusController.php b/apps/weather_status/lib/Controller/WeatherStatusController.php index 0a0e3a47933..3813bbf9b41 100644 --- a/apps/weather_status/lib/Controller/WeatherStatusController.php +++ b/apps/weather_status/lib/Controller/WeatherStatusController.php @@ -46,7 +46,7 @@ class WeatherStatusController extends OCSController { IRequest $request, ILogger $logger, WeatherStatusService $service, - string $userId) { + ?string $userId) { parent::__construct($appName, $request); $this->userId = $userId; $this->logger = $logger; diff --git a/apps/weather_status/lib/Service/WeatherStatusService.php b/apps/weather_status/lib/Service/WeatherStatusService.php index eb39bbe502c..2d9140c3218 100644 --- a/apps/weather_status/lib/Service/WeatherStatusService.php +++ b/apps/weather_status/lib/Service/WeatherStatusService.php @@ -105,7 +105,7 @@ class WeatherStatusService { IUserManager $userManager, IAppManager $appManager, ICacheFactory $cacheFactory, - string $userId) { + ?string $userId) { $this->config = $config; $this->userId = $userId; $this->l10n = $l10n; |