From af4bb909cd64429d9f18717cfa750cff79dbb2b7 Mon Sep 17 00:00:00 2001 From: flashwave Date: Sun, 6 Feb 2022 01:40:53 +0000 Subject: [PATCH] uhhh fix? --- public/whois/index.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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));