From 5a6c0f64a673c4bbd872847bcfb7c90431ccb575 Mon Sep 17 00:00:00 2001 From: Julien Veyssier Date: Fri, 25 Sep 2020 10:42:30 +0200 Subject: avoid crash when unauthenticated users make weather-related requests, mention it in UI Signed-off-by: Julien Veyssier --- apps/weather_status/lib/Controller/WeatherStatusController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/weather_status/lib/Controller') 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; -- cgit v1.2.3