Fix various notices

This commit is contained in:
Hypolite Petovan 2018-12-15 04:32:47 -05:00
parent 607f7daf51
commit b6e1571b1e
7 changed files with 17 additions and 17 deletions

View file

@ -362,7 +362,7 @@ class Network
/// @TODO Really suppress function outcomes? Why not find them + debug them?
$h = @parse_url($url);
if ((is_array($h)) && (@dns_get_record($h['host'], DNS_A + DNS_CNAME) || filter_var($h['host'], FILTER_VALIDATE_IP) )) {
if (!empty($h['host']) && (@dns_get_record($h['host'], DNS_A + DNS_CNAME) || filter_var($h['host'], FILTER_VALIDATE_IP) )) {
return $url;
}