diff options
| author | Moritz Strohm <strohm@data-quest.de> | 2025-04-09 14:07:03 +0200 |
|---|---|---|
| committer | Moritz Strohm <strohm@data-quest.de> | 2025-04-16 08:49:31 +0000 |
| commit | db41dcd75628207448d2643a4476c7f5a57e8d52 (patch) | |
| tree | cc31441c7a0ba0ebd6d817dac6b82ca501bfae90 /app | |
| parent | 64a82ba9fefeb63d3917b999eb5448c9ad323ac3 (diff) | |
calendar/schedule controller: use correct types to be compatible with strict type enforcementbiest-05480
Diffstat (limited to 'app')
| -rw-r--r-- | app/controllers/calendar/schedule.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/app/controllers/calendar/schedule.php b/app/controllers/calendar/schedule.php index 794b25f..63803dc 100644 --- a/app/controllers/calendar/schedule.php +++ b/app/controllers/calendar/schedule.php @@ -205,14 +205,14 @@ class Calendar_ScheduleController extends AuthenticatedController $start_time_parts = explode(':', $cycle_date->start_time); $end_time_parts = explode(':', $cycle_date->end_time); $fake_begin->setTime( - $start_time_parts[0], - $start_time_parts[1], - $start_time_parts[2] + intval($start_time_parts[0]), + intval($start_time_parts[1]), + intval($start_time_parts[2]) ); $fake_end->setTime( - $end_time_parts[0], - $end_time_parts[1], - $end_time_parts[2] + intval($end_time_parts[0]), + intval($end_time_parts[1]), + intval($end_time_parts[2]) ); $schedule_course = ScheduleCourseDate::findOneBySQL( @@ -339,8 +339,8 @@ class Calendar_ScheduleController extends AuthenticatedController $this->entry->setFormattedEnd(Request::get('end', date('H:00', strtotime('+2 hours')))); } elseif (Request::submitted('begin')) { //Fullcalendar: Timestamps - $begin = Request::get('begin'); - $end = Request::get('end'); + $begin = Request::int('begin'); + $end = Request::int('end'); if ($begin && $end) { $this->entry->dow = intval(date('N', $begin)); $this->entry->setFormattedStart(date('H:i', $begin)); |
