Tidy code

This commit is contained in:
johnnyq
2023-03-01 16:26:41 -05:00
parent 45b686dafc
commit e42095a85e
3 changed files with 19 additions and 210 deletions

View File

@@ -353,7 +353,7 @@ function getDomainExpirationDate($name) {
// Only run if we think the domain is valid
if (!filter_var($name, FILTER_VALIDATE_DOMAIN, FILTER_FLAG_HOSTNAME)) {
return '0000-00-00';
return "NULL";
}
$ch = curl_init();
@@ -373,7 +373,7 @@ function getDomainExpirationDate($name) {
}
// Default return
return '0000-00-00';
return "NULL";
}
// Get domain general info (whois + NS/A/MX records)