aboutsummaryrefslogtreecommitdiffstats
path: root/apps/weather_status/lib/Controller
diff options
context:
space:
mode:
authorJulien Veyssier <eneiluj@posteo.net>2020-09-25 10:42:30 +0200
committerJulien Veyssier <eneiluj@posteo.net>2020-09-28 09:58:49 +0200
commit5a6c0f64a673c4bbd872847bcfb7c90431ccb575 (patch)
tree9a82b99b5aab309bf8e3c7b2a92ca73e2841d852 /apps/weather_status/lib/Controller
parentbd0b28d670057bc8982560e1fb994fe3ed299d7a (diff)
downloadnextcloud-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/Controller')
-rw-r--r--apps/weather_status/lib/Controller/WeatherStatusController.php2
1 files changed, 1 insertions, 1 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;