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);
|
$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));
|
||||||
|
|
Loading…
Reference in a new issue