Skip to content
Snippets Groups Projects
Commit a0219aff authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FIX #19031 TIME 0:10 fix warn php8.1

parent 3fae2c2b
No related branches found
No related tags found
No related merge requests found
...@@ -82,8 +82,8 @@ foreach ($schedules as $schedule) { ...@@ -82,8 +82,8 @@ foreach ($schedules as $schedule) {
continue; continue;
} }
$lastExecution = new DateTime($schedule['last_execution']);
if (!empty($schedule['last_execution'])) { if (!empty($schedule['last_execution'])) {
$lastExecution = new DateTime($schedule['last_execution']);
$difference = $currentDate->diff($lastExecution); $difference = $currentDate->diff($lastExecution);
if (empty($schedule['frequency']) && $lastExecution->format('Y-m-d') == $currentDate->format('Y-m-d')) { if (empty($schedule['frequency']) && $lastExecution->format('Y-m-d') == $currentDate->format('Y-m-d')) {
continue; continue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment