uhhh fix?

This commit is contained in:
flash 2022-02-06 01:40:53 +00:00
parent c4d160a20c
commit af4bb909cd

View file

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