From bac36a196df882180e8c17f4b56932048971722e Mon Sep 17 00:00:00 2001 From: lebozec <nicolas.lebozec@xelians.fr> Date: Tue, 14 Feb 2023 15:16:14 +0100 Subject: [PATCH] FIX #19031 TIME 0:15 Fix deprecated when opening the profile --- .../controllers/NotificationsScheduleController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/notifications/controllers/NotificationsScheduleController.php b/src/app/notifications/controllers/NotificationsScheduleController.php index 2f1431a8b8..d3263529cb 100644 --- a/src/app/notifications/controllers/NotificationsScheduleController.php +++ b/src/app/notifications/controllers/NotificationsScheduleController.php @@ -86,8 +86,8 @@ class NotificationsScheduleController 'months' => json_decode($value['months']), 'daysOfMonth' => json_decode($value['days_of_month']), 'daysOfWeek' => json_decode($value['days_of_week']), - 'startTime' => (new \DateTime($value['start_time']))->format('H:i'), - 'endTime' => (new \DateTime($value['end_time']))->format('H:i'), + 'startTime' => (new \DateTime($value['start_time'] ?? ''))->format('H:i'), + 'endTime' => (new \DateTime($value['end_time'] ?? ''))->format('H:i'), 'frequency' => $value['frequency'], 'frequencyMode' => $value['frequency_mode'], 'status' => $value['status'], -- GitLab