Skip to content

Commit b387e3d

Browse files
committed
fix: wrap this in an au specific check
this ensures this code won't have the possibility of affecting other TLDs
1 parent 7b05972 commit b387e3d

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

modules/registrars/synergywholesaledomains/synergywholesaledomains.php

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2732,19 +2732,21 @@ function synergywholesaledomains_CheckAvailability(array $params)
27322732
$status = WHMCS\Domains\DomainLookup\SearchResult::STATUS_REGISTERED;
27332733
}
27342734

2735-
// Check if showing single contested domains as available is enabled
2736-
if ('register' === $type && (!isset($params['auDirectShowSingleContestedAvailable']) || $params['auDirectShowSingleContestedAvailable'] !== 'on')
2737-
&& isset($domain->requiresMembership) && $domain->requiresMembership
2738-
&& isset($domain->requiresApplication) && !$domain->requiresApplication
2739-
) {
2740-
$status = WHMCS\Domains\DomainLookup\SearchResult::STATUS_RESERVED;
2741-
}
2735+
if ('au' === $tld) {
2736+
// Check if showing single contested domains as available is enabled
2737+
if ('register' === $type && (!isset($params['auDirectShowSingleContestedAvailable']) || $params['auDirectShowSingleContestedAvailable'] !== 'on')
2738+
&& isset($domain->requiresMembership) && $domain->requiresMembership
2739+
&& isset($domain->requiresApplication) && !$domain->requiresApplication
2740+
) {
2741+
$status = WHMCS\Domains\DomainLookup\SearchResult::STATUS_RESERVED;
2742+
}
27422743

2743-
// Check if showing multi contested domains as available is enabled
2744-
if ('register' === $type && (!isset($params['auDirectShowMultiContestedAvailable']) || $params['auDirectShowMultiContestedAvailable'] !== 'on')
2745-
&& isset($domain->requiresApplication) && $domain->requiresApplication
2746-
) {
2747-
$status = WHMCS\Domains\DomainLookup\SearchResult::STATUS_RESERVED;
2744+
// Check if showing multi contested domains as available is enabled
2745+
if ('register' === $type && (!isset($params['auDirectShowMultiContestedAvailable']) || $params['auDirectShowMultiContestedAvailable'] !== 'on')
2746+
&& isset($domain->requiresApplication) && $domain->requiresApplication
2747+
) {
2748+
$status = WHMCS\Domains\DomainLookup\SearchResult::STATUS_RESERVED;
2749+
}
27482750
}
27492751

27502752
if (

0 commit comments

Comments
 (0)