Commit 2f4360d9 authored by Thomas Bella's avatar Thomas Bella

Fix repeating email notifications

parent b968eece
Pipeline #618 passed with stage
in 26 seconds
......@@ -205,6 +205,11 @@ foreach ($ressources as $row) {
$sendNotification = false;
foreach ($notificationInterval as $singleNotificationDay) {
// Check if lowest day for notification was already reached
if ($row['notification_step'] == $notificationInterval[0]) {
break;
}
if ($daysUntilExpire <= $singleNotificationDay) {
vlog($daysUntilExpire . ' days <= ' . $singleNotificationDay . ' days', 3);
if ($row['notification_step'] != $singleNotificationDay) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment