Fix PHP warning
This commit is contained in:
parent
cc2d0ea6f9
commit
7d4992480b
|
@ -15,7 +15,8 @@ function gethost($ip)
|
|||
$ires = array();
|
||||
|
||||
$host = `host -s -W 5 $ip`;
|
||||
$host = ($host ? end( explode(' ', trim(trim($host), '.'))) : $ip);
|
||||
$host = explode(' ', trim(trim($host), '.'));
|
||||
$host = ($host ? end($host) : $ip);
|
||||
$ires = array();
|
||||
if(in_array($host, Array('reached', 'record', '3(NXDOMAIN)')))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue