mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-23 11:05:57 +02:00
Small fixes
This commit is contained in:
parent
3c6504ef9e
commit
f3cbf5b2af
4 changed files with 9 additions and 8 deletions
|
@ -129,8 +129,9 @@ function processDomainCheck($conn, $db, $xml, $trans) {
|
|||
$domainEntry[] = 'In use';
|
||||
} else {
|
||||
// Check if the domain is reserved
|
||||
$parts = explode('.', $domainName);
|
||||
$stmt = $db->prepare("SELECT type FROM reserved_domain_names WHERE name = :domainName LIMIT 1");
|
||||
$stmt->bindParam(':domainName', $domainName, PDO::PARAM_STR);
|
||||
$stmt->bindParam(':domainName', $parts[0], PDO::PARAM_STR);
|
||||
$stmt->execute();
|
||||
$reserved = $stmt->fetchColumn();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue