uhhh fix?
This commit is contained in:
parent
c4d160a20c
commit
af4bb909cd
1 changed files with 2 additions and 3 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue