From 18217903c9354b89ad0833a0a636b3a453f67ffd Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms <tleilax+studip@gmail.com> Date: Mon, 25 Mar 2024 08:42:37 +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 a618a3d9c89..5c1db1ab344 100644 --- a/app/controllers/calendar/date.php +++ b/app/controllers/calendar/date.php @@ -356,7 +356,7 @@ class Calendar_DateController extends AuthenticatedController } $this->all_day_event = false; - if ($mode === 'add' && Request::get('all_day') === '1') { + if ($mode === 'add' && Request::bool('all_day')) { $this->all_day_event = true; //Check for a fullcalendar all-day event ending. In that case, remove one second to have an all-day event //that abides to the Stud.IP rules. -- GitLab