diff --git a/includes/pages/user_shifts.php b/includes/pages/user_shifts.php index 89ead0cf..9fd306c9 100644 --- a/includes/pages/user_shifts.php +++ b/includes/pages/user_shifts.php @@ -44,7 +44,7 @@ function update_ShiftsFilter(ShiftsFilter $shiftsFilter, $user_shifts_admin, $da if (isset($_REQUEST['types'])) { $shiftsFilter->setTypes(check_request_int_array('types')); } - + if ((isset($_REQUEST['start_time']) && isset($_REQUEST['start_day']) && isset($_REQUEST['end_time']) && isset($_REQUEST['end_day'])) || $shiftsFilter->getStartTime() == null || $shiftsFilter->getEndTime() == null) { $day = date('Y-m-d', time()); $start_day = in_array($day, $days) ? $day : min($days); @@ -352,6 +352,8 @@ function view_user_shifts() { $shifts_table .= '