Update epp-update.php

This commit is contained in:
Pinga 2025-07-09 14:44:11 +03:00
parent 8f92beda12
commit db3b19e116

View file

@ -937,7 +937,6 @@ function processHostUpdate($conn, $db, $xml, $clid, $database_type, $trans) {
$domain_id = $hostRow['domain_id'];
$host_id = $hostRow['id'];
if ($domain_id !== null) {
$tlds_scan = $db->query("SELECT tld FROM domain_tld")->fetchAll(PDO::FETCH_COLUMN);
$chg_domain = extractDomainFromHost($chg_name, $tlds_scan);
@ -951,6 +950,7 @@ function processHostUpdate($conn, $db, $xml, $clid, $database_type, $trans) {
return;
}
if ($domain_id !== null) {
$stmt = $db->prepare("SELECT name FROM domain WHERE id = ? LIMIT 1");
$stmt->execute([$domain_id]);
$domain_name = $stmt->fetchColumn();