fix: correct notification reminder configuration keys for 3-day and 7-day reminders
This commit is contained in:
parent
bad0545be5
commit
9bae41dbe7
@ -49,7 +49,7 @@ foreach ($d as $ds) {
|
|||||||
} else {
|
} else {
|
||||||
$price = $p['price'];
|
$price = $p['price'];
|
||||||
}
|
}
|
||||||
if ($ds['expiration'] == $day7 && $config['notification_reminder_7day'] !== 'no') {
|
if ($ds['expiration'] == $day7 && $config['notification_reminder_7days'] !== 'no') {
|
||||||
try {
|
try {
|
||||||
echo Message::sendPackageNotification(
|
echo Message::sendPackageNotification(
|
||||||
$c,
|
$c,
|
||||||
@ -61,7 +61,7 @@ foreach ($d as $ds) {
|
|||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
sendTelegram("Cron Reminder failed to send 7-day reminder to " . $ds['username'] . " Error: " . $e->getMessage());
|
sendTelegram("Cron Reminder failed to send 7-day reminder to " . $ds['username'] . " Error: " . $e->getMessage());
|
||||||
}
|
}
|
||||||
} else if ($ds['expiration'] == $day3 && $config['notification_reminder_3day'] !== 'no') {
|
} else if ($ds['expiration'] == $day3 && $config['notification_reminder_3days'] !== 'no') {
|
||||||
try {
|
try {
|
||||||
echo Message::sendPackageNotification(
|
echo Message::sendPackageNotification(
|
||||||
$c,
|
$c,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user