mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-25 03:48:24 +02:00
EPP domain create fix
This commit is contained in:
parent
9d1e32df89
commit
9bdc8fecdd
1 changed files with 1 additions and 3 deletions
|
@ -1165,15 +1165,13 @@ 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();
|
||||
|
||||
$stmt = $db->prepare("INSERT INTO `domain_contact_map` (`domain_id`,`contact_id`,`type`) VALUES(?,?,?)");
|
||||
$stmt->execute([$domain_id, $contact_id, $type]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue