mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-21 10:06:05 +02:00
Fixed issue with epp transfer periods
This commit is contained in:
parent
525804c4a3
commit
71902173a1
1 changed files with 2 additions and 2 deletions
|
@ -954,8 +954,8 @@ function processDomainTransfer($conn, $db, $xml, $clid, $database_type, $trans)
|
|||
$acdate = $row['acdate'];
|
||||
|
||||
if (!$trstatus || $trstatus !== 'pending') {
|
||||
$period = (int) ($xml->xpath('domain:period[1]')[0] ?? 0);
|
||||
$period_unit = ($xml->xpath('domain:period/@unit[1]')[0] ?? '');
|
||||
$period = (int) ($xml->xpath('//domain:period[1]')[0] ?? 0);
|
||||
$period_unit = ($xml->xpath('//domain:period/@unit[1]')[0] ?? '');
|
||||
|
||||
if ($period) {
|
||||
if ($period < 1 || $period > 99) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue