Domain expiration dates

- Update logic in post when adding/editing a domain to better account for null values
- Update logic in cron domain refresher to account for null values
- Prevent cron domain refresher getting stuck on a single domain
- Exclude domains with no expiration date from the cron nightly renewal alerts
This commit is contained in:
Marcus Hill
2024-02-22 21:51:12 +00:00
parent 4fddeb88b7
commit 66dc7e799b
3 changed files with 47 additions and 24 deletions

View File

@@ -138,7 +138,7 @@ if($config_enable_alert_domain_expire == 1){
$mysqli,
"SELECT * FROM domains
LEFT JOIN clients ON domain_client_id = client_id
WHERE domain_expire = CURDATE() + INTERVAL $day DAY"
WHERE domain_expire IS NOT NULL AND domain_expire = CURDATE() + INTERVAL $day DAY"
);
while ($row = mysqli_fetch_array($sql)) {