EPP domain create fix

This commit is contained in:
Pinga 2023-08-21 11:36:16 +03:00
parent 9d1e32df89
commit 9bdc8fecdd

View file

@ -1165,8 +1165,7 @@ function processDomainCreate($conn, $db, $xml, $clid, $database_type) {
foreach ($contactTypes as $type => $contact_list) {
foreach ($contact_list as $element) {
foreach ($element->children() as $node) {
$contact = (string)$node;
$contact = (string)$element;
$stmt = $db->prepare("SELECT `id` FROM `contact` WHERE `identifier` = ? LIMIT 1");
$stmt->execute([$contact]);
$contact_id = $stmt->fetchColumn();
@ -1175,7 +1174,6 @@ function processDomainCreate($conn, $db, $xml, $clid, $database_type) {
$stmt->execute([$domain_id, $contact_id, $type]);
}
}
}
$stmt = $db->prepare("SELECT `crdate`,`exdate` FROM `domain` WHERE `name` = ? LIMIT 1");
$stmt->execute([$domainName]);