@@ -632,7 +632,7 @@ function synergywholesaledomains_RegisterDomain(array $params)
632
632
*/
633
633
function synergywholesaledomains_TransferDomain (array $ params )
634
634
{
635
- if (preg_match ('/\.uk$/ ' , $ params ['sld ' ])) {
635
+ if (preg_match ('/\.uk$/ ' , $ params ['tld ' ])) {
636
636
return synergywholesaledomains_apiRequest ('transferDomain ' , $ params );
637
637
}
638
638
@@ -641,7 +641,7 @@ function synergywholesaledomains_TransferDomain(array $params)
641
641
'doRenewal ' => 1 ,
642
642
];
643
643
644
- if (preg_match ('/\.au$/ ' , $ params ['sld ' ])) {
644
+ if (preg_match ('/\.au$/ ' , $ params ['tld ' ])) {
645
645
$ canRenew = synergywholesaledomains_apiRequest ('domainRenewRequired ' , $ params , $ request , false );
646
646
$ request ['doRenewal ' ] = (int ) ('on ' === $ params ['doRenewal ' ] && 'OK_RENEWAL ' === $ canRenew ['status ' ]);
647
647
}
@@ -1118,7 +1118,6 @@ function synergywholesaledomains_GetContactDetails(array $params)
1118
1118
$ idProtectStatus = synergywholesaledomains_apiRequest ('domainInfo ' , $ params , [], false );
1119
1119
$ command = ('Enabled ' === $ idProtectStatus ['idProtect ' ] ? 'listProtectedContacts ' : 'listContacts ' );
1120
1120
$ contacts = synergywholesaledomains_apiRequest ($ command , $ params , [], false );
1121
-
1122
1121
$ response = [];
1123
1122
1124
1123
$ map = [
@@ -1135,7 +1134,14 @@ function synergywholesaledomains_GetContactDetails(array $params)
1135
1134
'email ' => 'Email ' ,
1136
1135
];
1137
1136
1138
- foreach (['registrant ' , 'tech ' , 'billing ' , 'admin ' ] as $ contact ) {
1137
+ $ contactTypes = ['registrant ' ];
1138
+ foreach (['admin ' , 'billing ' , 'tech ' ] as $ otherTypes ) {
1139
+ if (isset ($ contacts [$ otherTypes ])) {
1140
+ $ contactTypes [] = $ otherTypes ;
1141
+ }
1142
+ }
1143
+
1144
+ foreach ($ contactTypes as $ contact ) {
1139
1145
$ whmcs_contact = ucfirst ($ contact );
1140
1146
$ response [$ whmcs_contact ] = [];
1141
1147
foreach ($ map as $ from => $ to ) {
0 commit comments