File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
modules/registrars/synergywholesaledomains Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -960,7 +960,7 @@ function synergywholesaledomains_Sync(array $params)
960
960
->first ();
961
961
// If the domain used to exist in this whmcs installation it's safe to say if we get these errors then
962
962
// it has been transferred away to another reseller
963
- if (' Domain Info Failed - Unable to retrieve domain id ' === $ response [ ' error ' ] ) {
963
+ if (in_array ( $ response [ ' error ' ], [ ' Domain Info Failed - Unable to retrieve domain id ', ' Domain Info Failed - Domain Does Not Exist ' ]) ) {
964
964
// If now is after the domains expiry date mark it as cancelled
965
965
if (time () >= strtotime ($ selectInfo ->expirydate )) {
966
966
$ note = 'Domain has been marked as cancelled due to not being in your account and, the current date is past the expiry date ' ;
@@ -1075,7 +1075,7 @@ function synergywholesaledomains_TransferSync(array $params)
1075
1075
try {
1076
1076
$ response = synergywholesaledomains_apiRequest ('domainInfo ' , $ params );
1077
1077
} catch (\Exception $ e ) {
1078
- if ($ e ->getMessage () == 'Domain Info Failed - Unable to retrieve domain id ' ) {
1078
+ if (in_array ( $ e ->getMessage (), [ 'Domain Info Failed - Unable to retrieve domain id ' , ' Domain Info Failed - Domain Does Not Exist ' ]) ) {
1079
1079
return [
1080
1080
'completed ' => false ,
1081
1081
'failed ' => true ,
You can’t perform that action at this time.
0 commit comments