From a189fdf5436c2c89aaa331718d8f9df6d70827c3 Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms <tleilax+studip@gmail.com> Date: Mon, 25 Mar 2024 08:59:17 +0000 Subject: [PATCH] Apply 1 suggestion(s) to 1 file(s) --- app/controllers/calendar/date.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/calendar/date.php b/app/controllers/calendar/date.php index 5b00e323cf5..72f3a405931 100644 --- a/app/controllers/calendar/date.php +++ b/app/controllers/calendar/date.php @@ -840,7 +840,7 @@ class Calendar_DateController extends AuthenticatedController '`calendar_date_id` = :calendar_date_id AND `range_id` = :current_user_id', [ 'calendar_date_id' => $this->date->id, - 'current_user_id' => $GLOBALS['user']->id + 'current_user_id' => User::findCurrent()->id ] ); if ($result) { -- GitLab