From d8dbe68f51da511836819125711fad7b0e6e8ff4 Mon Sep 17 00:00:00 2001 From: Focuslinkstech <45756999+Focuslinkstech@users.noreply.github.com> Date: Sun, 2 Mar 2025 15:36:14 +0100 Subject: [PATCH] Update notification reminder conditions to allow for more flexible configuration --- system/cron_reminder.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/system/cron_reminder.php b/system/cron_reminder.php index 7ff97386..bb163ea3 100644 --- a/system/cron_reminder.php +++ b/system/cron_reminder.php @@ -49,19 +49,19 @@ foreach ($d as $ds) { } else { $price = $p['price']; } - if ($ds['expiration'] == $day7 && $config['notification_reminder_7day'] == 'yes') { + if ($ds['expiration'] == $day7 && $config['notification_reminder_7day'] !== 'no') { try { echo Message::sendPackageNotification($c, $p['name_plan'], $price, Lang::getNotifText('reminder_7_day'), $config['user_notification_reminder']) . "\n"; } catch (Exception $e) { sendTelegram("Cron Reminder failed to send 7-day reminder to " . $ds['username'] . " Error: " . $e->getMessage()); } - } else if ($ds['expiration'] == $day3 && $config['notification_reminder_3day'] == 'yes') { + } else if ($ds['expiration'] == $day3 && $config['notification_reminder_3day'] !== 'no') { try { echo Message::sendPackageNotification($c, $p['name_plan'], $price, Lang::getNotifText('reminder_3_day'), $config['user_notification_reminder']) . "\n"; } catch (Exception $e) { sendTelegram("Cron Reminder failed to send 3-day reminder to " . $ds['username'] . " Error: " . $e->getMessage()); } - } else if ($ds['expiration'] == $day1 && $config['notification_reminder_1day'] == 'yes') { + } else if ($ds['expiration'] == $day1 && $config['notification_reminder_1day'] !== 'no') { try { echo Message::sendPackageNotification($c, $p['name_plan'], $price, Lang::getNotifText('reminder_1_day'), $config['user_notification_reminder']) . "\n"; } catch (Exception $e) {