Skip to content

Commit

Permalink
Fix for is_available check
Browse files Browse the repository at this point in the history
Check always returned domains as unavailable because it was using the wrong parameter to check for.
  • Loading branch information
Duncank authored Oct 29, 2016
1 parent 0704fc5 commit 0d763dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/domain-available.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

$result = $result['response'];

if ($result['available'] === true) {
if ($result['is_available'] === true) {
// Domain is available for registration
echo 'Domain "'. $domainName .'" is available';

Expand All @@ -49,4 +49,4 @@
}

// D'oh, someone already took this domain!
echo 'Domain "'. $domainName .'" is not available';
echo 'Domain "'. $domainName .'" is not available';

0 comments on commit 0d763dd

Please sign in to comment.