uhhh fix?

This commit is contained in:
Pachira 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);
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));