diff --git a/public/whois/index.php b/public/whois/index.php index 782bb50..2751f1f 100644 --- a/public/whois/index.php +++ b/public/whois/index.php @@ -20,7 +20,7 @@ if(!empty($domain)) { $result = $redis->get(FMWHOIS_PREFIX . $domainHash); - if($result === false) { + if(empty($result)) { $whois = new Whois\Client; try { @@ -68,9 +68,8 @@ if(!empty($error)) { if(isset($_GET['ajax'])) { header('Content-Type: application/json; charset=utf-8'); - if(!isset($result)) { + if(!is_object($result)) $result = new stdClass; - } $result->responseText = $responseText; die(json_encode($result));